我正在尝试在 Jupyter 笔记本上使用 Pandas 导入 .csv 数据集文件。我一直收到相同的“unicode 解码错误”消息
我试过使用和不(r'file name')
使用反斜杠,以及使用正斜杠
这是我的代码
import pandas as pd
df = pd.read_csv(r'C:\users\justanotheregg\Downloads\medals.csv')
这是我收到的一部分
UnicodeDecodeError Traceback (most recent call last)
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_tokens()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._convert_with_dtype()
pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._string_convert()
pandas/_libs/parsers.pyx in pandas._libs.parsers._string_box_utf8()
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x92 in position 12: invalid start byte
During handling of the above exception, another exception occurred:
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句