當我嘗試運行此代碼時,出現錯誤“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
提交
取消