Data Science/Python
[Python] Dataframe에서 Zip파일 읽기
from zipfile import ZipFile import pandas as pd """ archive.zip -- file1.csv -- file2.csv -- file3.csv """ zip_file = ZipFile('archive.zip') dfs = [] for f in zip_file.infolist(): dfs.append( pd.read_csv(zip_file.open(f)) ) all_df = pd.concat(dfs)
2022. 9. 27. 00:39
최근댓글