为什么我在阅读csv文件在jupyter中得到这个错误

inn6fuwd  于 2023-01-03  发布在  其他
关注(0)|答案(1)|浏览(127)
import pandas as pd
df = pd.read_csv(r"C:\Users\deban\OneDrive\Desktop\spam.csv")
df.head()

Deatils of the error

nom7f22z

nom7f22z1#

试试这个

import pandas as pd
df = pd.read_csv('C:/Users/deban/OneDrive/Desktop/spam.csv', engine='python')
df.head()

或者这个:

import pandas as pd
data = pd.read_csv('C:/Users/deban/OneDrive/Desktop/spam.csv', encoding='utf-8')
df.head()

相关问题