为什么我在jupyter中读取csv文件时会出现此错误


import pandas as pd
df = pd.read_csv(r"C:UsersdebanOneDriveDesktopspam.csv")
df.head()

错误详情

try this

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()

相关内容

  • 没有找到相关文章

最新更新