We can use “zipfile” module to read ZIP archive files.
import pandas as pd
zf = zipfile.ZipFile(‘file-path’) # having sample.csv zipped file.
df = pd.read_csv(zf.open(‘sample.csv’))
Here, please follow the below link for more info:
You can now directly read the csv file inside zip folder (given that there is only one csv file present in the folder). Below is the command: