I have a CSV file in the following format (these are the first 3 rows):
A,B,P,S,P,B,BA,DE,PREM,DISC,DISC_P,DISC_T,DISC_F
2021/05/31,2012,"10","S","","Dis","DI","EX,,0.00,,"Pt",0,
2021/05/31,2109,"10","S","","Dis","DI","EX",0.00,,"tt",0,
I want to read it into a dataframe on Python and this is my code:
df= pd.read_csv (r'C:\file.csv',sep=",")
df.head()
When I run this code, it only splits the first row into separate columns accordingly. However, the rest of the rows are just populated into 1 column and are not being separated and grouped under the headings accordingly.
What might the issue be?
