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