In my case, this error came when there were duplicate entries on one of the axes of pandas (duplicate instrument token etc.) and I was trying to use df.fillna( ) or was trying to change the dimension of the object. Removing the duplicate index/column might solve your issue.
Any idea whats the issue here.
Given below is a part of my code.
def on_close(ws):
ws.reconnect()
def on_error(ws,error):
print("on_error in websockets::",error)
ws.connect()
def on_disconnect(ws):
ws.connect()
def on_connect(ws):
ws.subscribe(instrumenttokenlist)
ws.set_mode(ws.MODE_FULL,instrumenttokenlist)
kws.on_tick = on_tick
kws.on_connect = on_connect
kws.on_close = on_close
kws.on_error = on_error
kws.on_disconnect = on_disconnect
kws.enable_reconnect(reconnect_interval=5, reconnect_tries=50)
kws.connect(disable_ssl_verification=True)
Are you using python pandas for processing? In case it helps, I got this error while using python pandas for processing tick data.
yes I am using python pandas for processing. Were you able to resolve this issue ?
Removing the duplicate index/column might solve your issue.