UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 3114: invalid continuation 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'
)