首页 > 其他分享 >UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3114: invalid co

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3114: invalid co

时间:2022-10-24 12:00:52浏览次数:48  
标签:utf sep continuation header 报错 ISO byte

movies = pd.read_table(
file_path,
header = None,
sep="::",
names=["movieID","title","genres"],
engine = "python",

)

添加 encoding='ISO-8859-1'可解决该问题


movies = pd.read_table(
file_path,
header = None,
sep="::",
names=["movieID","title","genres"],
engine = "python",
encoding='ISO-8859-1'
)

标签:utf,sep,continuation,header,报错,ISO,byte
From: https://www.cnblogs.com/jiangsheng3/p/16821039.html

相关文章