pandas.errors.ParserError: ',' expected after '"'

前端 未结 2 814
逝去的感伤
逝去的感伤 2021-01-22 03:36

I am trying to read this dataset from Kaggle: Amazon sales rank data for print and kindle books

The file amazon_com_extras.csv has a column named \"Title\"

2条回答
  •  隐瞒了意图╮
    2021-01-22 03:57

    This works for me Sniffer:

    import requests
    import csv
    with open('spotify_dataset.csv') as csvfile:
        dialect = csv.Sniffer().sniff(csvfile.read(14734))
    
    
    df = pd.read_csv('spotify_dataset.csv', engine='python', dialect=dialect, error_bad_lines=False)
    

提交回复
热议问题