You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>>df = pd.read_csv("3BtTWMUQAMawXcCheUAOMlXU.csv", chunksize=2)
>>>for d in df:
... d = d.to_dict(orient='records')
... for r in d:
... print(r)
... import sys
... sys.exit()
While reading a CSV file, I try to get a list of column names via:
The o/p, i.e., the columns are:
and rows via:
The o/p is:
As you can see, the column name Response ID is missing while I read the row. It should be noted that df.iterrows() gave me all the correct columns.
The first few lines(inc the header) from my CSV file are here so that one can take this question as MVC.
The text was updated successfully, but these errors were encountered: