Python Pandas Error tokenizing data

后端 未结 30 2750
不知归路
不知归路 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:42

    This is definitely an issue of delimiter, as most of the csv CSV are got create using sep='/t' so try to read_csv using the tab character (\t) using separator /t. so, try to open using following code line.

    data=pd.read_csv("File_path", sep='\t')
    

提交回复
热议问题