Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to read zip csv file in python

import pandas as pd
import zipfile

zf = zipfile.ZipFile('C:/Users/Desktop/THEZIPFILE.zip') 
# if you want to see all files inside zip folder
zf.namelist() 
# now read your csv file 
df = pd.read_csv(zf.open('intfile.csv'))
 
PREVIOUS NEXT
Tagged: #read #zip #csv #file #python
ADD COMMENT
Topic
Name
7+3 =