I am trying to parse a CSV file, but somehow pandas does not recognize the separator/delimiter. I have look at the similar replies around, but I still have not managed to parse my file correctly (only the header is parsed properly).
Each line of the file looks like this: https://drive.google.com/a/company.com/uc?export=download&id=10p-c0i2xtWBSvJ3OJV5pgEUarE1X,-1,"{""type"":""F03""}",0,0,"{}","{}"
The code I have tried is following:
In [0]: import pandas as pd In [1]: data = pd.read_csv('file.csv', sep=',') data.head() Out [1]: filename file_size file_attributes region_count region_id region_shape_attributes region_attributes 0 https://drive... NaN NaN NaN NaN NaN NaN 1 https://drive... NaN NaN NaN NaN NaN NaN 2 https://drive... NaN NaN NaN NaN NaN NaN 3 https://drive... NaN NaN NaN NaN NaN NaN 4 https://drive... NaN NaN NaN NaN NaN NaN In [2]: data['filename'][0] Out [2]: 'https://drive.google.com/a/company.com/uc?export=download&id=10p-c0i2xtWBSvJ3OJV5pgEUarE1X,-1,"{""type"":""F03""}",0,0,"{}","{}"'