I'm trying to unzip a gunzip file in to .csv file , I tried different methods, still it is not getting the result i want, if any one make me understand how it is being unzipped in back end, that would be a great help.
I also tried this code:
csv_file = open("xyz.csv", 'wb')
writer = csv.DictWriter(csv_file, fieldnames=df.columns.to_list())
writer.writeheader()
writer.writerows(df.to_dict())
csv_file.close()
this above code is throwing bad zip file error