Skip to content

Instantly share code, notes, and snippets.

@mikaelhg
Created June 29, 2023 13:46
Show Gist options
  • Save mikaelhg/dbce60a6454d80085d444058cea1cfad to your computer and use it in GitHub Desktop.
Save mikaelhg/dbce60a6454d80085d444058cea1cfad to your computer and use it in GitHub Desktop.
Setting zstd compression level to 22 with pandas and parquet
import pandas as pd
df = ...
df.to_parquet("foobar.parquet.zst", compression='zstd', compression_level=22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment