📜  如何在 python 代码示例中读取 zip csv 文件

📅  最后修改于: 2022-03-11 14:46:24.952000             🧑  作者: Mango

代码示例1
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'))