【发布时间】:2020-01-13 21:43:12
【问题描述】:
我想从https://www.osha.gov/fatalities/reports/archive 下载一个 csv 文件。
请试试 2015 财年的那个。
我的代码是这样的:
a=pd.read_csv('C://.../fy15_federal-state_summaries.csv',encoding = "utf-8")
但我仍然收到错误:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x98 in position 61: invalid start byte
我也尝试了不同的方法。但都不起作用。有人可以帮我吗?
【问题讨论】:
标签: python csv input unicode utf-8