[問題]請問pandad讀取csv檔發生的問題??
import pandas as pd
marks = pd.read_csv('1.csv')
結果..報錯
File "pandas\parser.pyx", line 535, in pandas.parser.TextReader.__cinit__
(pandas\parser.c:6077)
File "pandas\parser.pyx", line 738, in pandas.parser.TextReader._get_header
(pandas\parser.c:9215)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 0:
invalid start byte
應該是無法Decoded檔案 ..請問有辦法強制忽略 將檔案牘進去Dataframe
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 180.205.136.60
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1493977020.A.73E.html
→
05/05 20:37, , 1F
05/05 20:37, 1F
推
05/05 21:54, , 2F
05/05 21:54, 2F
→
05/05 21:54, , 3F
05/05 21:54, 3F
→
05/05 21:54, , 4F
05/05 21:54, 4F
→
05/05 21:55, , 5F
05/05 21:55, 5F
→
05/05 22:42, , 6F
05/05 22:42, 6F