how to read zip csv file in python

Solutions on MaxInterview for how to read zip csv file in python by the best coders in the world

showing results for - "how to read zip csv file in python"
Carl
07 Jul 2017
1import pandas as pd
2import zipfile
3
4zf = zipfile.ZipFile('C:/Users/Desktop/THEZIPFILE.zip') 
5# if you want to see all files inside zip folder
6zf.namelist() 
7# now read your csv file 
8df = pd.read_csv(zf.open('intfile.csv'))