Python Pandas Error tokenizing data

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

    The following worked for me (I posted this answer, because I specifically had this problem in a Google Colaboratory Notebook):

    df = pd.read_csv("/path/foo.csv", delimiter=';', skiprows=0, low_memory=False)
    

提交回复
热议问题