An extension to Problems reading CSV file with commas and characters in pandas
Solution provided in the above link works if and only if one column which contains commas as its characters and rest of the columns are well behaved.
What if there are more than one column with above issue?
Example CSV content with additional commas issue :
Name,Age,Address,Phone,Qualification
Suresh,28,Texas,3334567892,B.Tech
Ramesh,24,NewYork, NY,8978974040,9991111234,Ph.D
Mukesh,26,Dallas,4547892345,Ph.D
Required Output Pandas DataFrame:
Name Age Address Phone Qualification
Suresh 28 Texas 3334567892 B.Tech
Ramesh 24 NewYork, NY 8978974040,9991111234 Ph.D
Mukesh 26 Dallas 4547892345 Ph.D
Edited :
Input file with commas as characters in successive columns :
Name,Age,Address,Qualification,Grade
Suresh,28,Texas,B.Tech,Ph.D,A
Ramesh,24,NewYork, NY,B.Tech,A+
Mukesh,26,Dallas,B.Tech,Ph.D,A
Required Output Pandas DataFrame:
Name Age Address Qualification Grade
Suresh 28 Texas B.Tech,Ph.D A
Ramesh 24 NewYork, NY B.Tech A+
Mukesh 26 Dallas B.Tech,Ph.D A
Can I get any suggestions to solve this issue?
Thanks in Advance!!!