Search
 
SCRIPT & CODE EXAMPLE
 

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'))
Comment

PREVIOUS NEXT
Code Example
Python :: UnicodeDecodeError ‘utf8’ codec can’t decode byte pandas 
Python :: get output of ps aux grep python 
Python :: pygame center text in rect 
Python :: calculate highest frequency or mode in pandas dataframe 
Python :: python convert 1 to 01 
Python :: Solving environment: failed with initial frozen solve. retrying with flexible solve 
Python :: python float to fraction 
Python :: pil to rgb 
Python :: background image in python 
Python :: skip header in csv python 
Python :: Removing punctuation in Python 
Python :: python get domain from url 
Python :: extract zip file python 
Python :: bail bond cowboys 
Python :: how to create file using python cat command 
Python :: variable inside class not detecting global variable in python 
Python :: django check if url safe 
Python :: matplotlib plot 
Python :: max of first element in a list of tuples 
Python :: how to make a bot say hello <username when a user says hello in discord with python 
Python :: python afficher hello world 
Python :: apolatrix 
Python :: check value vowel user input python 
Python :: python f string round 
Python :: python seaborn heatmap decrease annot size 
Python :: django model query add annotation field to show duplicate count 
Python :: raatatatatatatatatatatatatatatatatatatatatatatatatatatattatana 
Python :: copy a 2d array in python 
Python :: save np array as mat file 
Python :: How to to efficiently find the first index in a sorted array of distinct numbers that is equal to the value at that index? 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =