I am trying to read a zipped txt file as pandas dataframe. Though the format of file after unzipping is txt, but it contains comma separated values.
Following the answer from here, I used:
path = 'data_folder/data.2020.ZIP'
df = pd.read_csv(path, compression='zip', header=None, sep=',')
print(df.head())
But it is throwing this error:
ParserError: Error tokenizing data. C error: Expected 37 fields in line 23, saw 80
I am using python 3.6 with pandas version 0.24.2. Would upgrading pandas help?