pandas常見報錯

問題1

’utf-8’ codec can’t decode byte 0xc4 in position 0: invalid continuation byte
解決:加入encoding=‘gbk’
data1=pd.read_csv(‘ZQ_MINI_MODEL_TOTAL.csv’,encoding=‘gbk’)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章