Python Pandas Error tokenizing data

后端 未结 30 2345
不知归路
不知归路 2020-11-22 04:49

I\'m trying to use pandas to manipulate a .csv file but I get this error:

pandas.parser.CParserError: Error tokenizing data. C error: Expected 2 field

30条回答
  •  再見小時候
    2020-11-22 05:41

    This is what I did.

    sep='::' solved my issue:

    data=pd.read_csv('C:\\Users\\HP\\Downloads\\NPL ASSINGMENT 2 imdb_labelled\\imdb_labelled.txt',engine='python',header=None,sep='::')
    

提交回复
热议问题