0

how to read comma separated csv file where column data has comma inside that using pandas python. I am getting error while reading csv file.

df = pd.read_csv("filename.csv", sep=",")

Data id,name,address "1","Naveen","123,city,state,country"

Error getting

pandas.errors.ParserError: Error tokenizing data. C error: Expected 3 fields in line 2, saw 5

  • It didn't answer my question. I don't know why My questions has rejected. I did my research before posting the question. – Naveen Gupta Dec 27 '21 at 12:36

0 Answers0