当我尝试运行此代码时,出现错误“SyntaxError:无法分配给函数调用”,而且我不知道要更改什么,因为此代码适用于向我展示的人。代码:import pandas as pdBTC= pd.DataFrame(BTC, columns=['Open time', 'Open', 'High', 'Low', 'Close', 'Volume', 'Close time', 'Quote asset volume', 'Number of trades', 'Taker buy asset volume', 'taker buy quote asset volume', 'Ignore'])BTC['Open time'] = pd.to_datetime(BTC['Open time']), unit='ms'BTC.set_index('Open time',inplace=True)BTC错误指向第三行。BTC['Open time'] = pd.to_datetime(BTC['Open time']), unit='ms'我在想也许包装器中的某些语法已经改变,因为我得到的代码已经有几年了。
添加回答
举报
0/150
提交
取消