Skip to content

Instantly share code, notes, and snippets.

@pimlock
Last active May 12, 2021 17:54
Show Gist options
  • Save pimlock/89346e10d04e4e21131c19e7c1530c2e to your computer and use it in GitHub Desktop.
Save pimlock/89346e10d04e4e21131c19e7c1530c2e to your computer and use it in GitHub Desktop.
df = pd.read_csv(
"s3://my-public-bucket/data.csv.gz",
storage_options={"anon": True},
# in this case pandas will infer it based on extension,
# but you can still specify it explicitely.
compression="gzip"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment