Skip to content

Instantly share code, notes, and snippets.

@weizh888
Created September 11, 2018 08:56
Show Gist options
  • Save weizh888/8d1144e0a5dae83e22864b10af03809c to your computer and use it in GitHub Desktop.
Save weizh888/8d1144e0a5dae83e22864b10af03809c to your computer and use it in GitHub Desktop.
import pandas as pd
import zipfile

zip_file_path = 'file_path'
zf = zipfile.ZipFile(zip_file_path)

csv_file_name = 'csv_file_name'
df = pd.read_csv(zf.open(csv_file_name))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment