看板 Python 關於我們 聯絡資訊
問題如title, 估狗了一下也有人報相同issue: https://github.com/pandas-dev/pandas/issues/27484 他的例子比較好講: print(Series([-1j])) 會出現index error: IndexError: list index out of range 想問各位高手, 做dataframe的複數運算時怎麼避免這個error, 或是還是我哪裡誤會pandas了QQ -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.195.193.187 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1586199479.A.743.html
cuteSquirrel: google colab 測試正常,有急用就先試試看吧04/07 20:43
cuteSquirrel: https://imgur.com/a/QesocTS04/07 20:44
感謝樓上回答, 看起來是版本問題(不是pandas本身) 我把所有package update到最新就ok了 ※ 編輯: keven92110 (42.73.197.117 臺灣), 04/07/2020 21:40:15 ※ 編輯: keven92110 (42.73.197.117 臺灣), 04/07/2020 21:49:21
cuteSquirrel: : ) 04/07 21:52