Pandas: How to workaround “error tokenizing data”?

前端 未结 4 1746
盖世英雄少女心
盖世英雄少女心 2021-02-03 10:51

A lot of questions have been already asked about this topic on SO. (and many others). Among the numerous answers, none of them was really helpful to me so far. If I missed

4条回答
  •  -上瘾入骨i
    2021-02-03 11:18

    In my case 1 I opened the *.csv in Excel 2 I saved the *.csv as CSV (comma-delimited) 3 I loaded the file in python via:

    import pandas as pd
    df = pd.read_csv('yourcsvfile.csv', sep=',')
    

    Hope it helps!

提交回复
热议问题