嗨,這是我的代碼:蟒蛇與熊貓矩陣JupyterNotebook()
當我嘗試運行這個,我得到一個錯誤。
df = pd.read_csv(file, sep='|', encoding='latin-1')
arreglox = df[df.columns['id':'date_in':'date_out':'objetive':'comments']].as_matrix()
arregloy = df[df.columns[1]].as_matrix()
以下是錯誤:
File "<ipython-input-30-6060fe26b2b1>", line 1
arreglox = df[df.columns['id':'date_in':'date_out':'objetive':'comments']].as_matrix()
^
SyntaxError: invalid syntax
請幫幫我,謝謝ü非常
它顯然有一個無效的語法,你試圖獲取 – turmuka