You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to pass compression level to_parquet, to_zarr [docs] #9298
I've spent some time reading through trying to trace how the compression args get used. I figured it would be useful to at least link to where you could find what compression options are valid, but I'm having trouble finding somewhere that lists out available compressions thats not just buried in the source code somewhere. It is alright to have these be essentially "here is the usage for these args to control compression" and leave figuring out what all the options are to the end user?
Hi, I’d like to work on this issue.
I plan to add documentation to the existing Zarr and Parquet sections explaining how to pass compression and compression-level arguments, with links to the underlying library docs.
Please let me know if that sounds good.
Activity
pavithraes commentedon Jul 25, 2022
cc @jsignell :)
jrbourbeau commentedon Jul 25, 2022
Not totally sure what the scope if for our how to pages, but I could see a "How to store compressed data" page being useful for users. Alternatively, we might add something directly to the existing section in the docs (e.g. add something to https://docs.dask.org/en/stable/array-creation.html#zarr for Zarr)
jsignell commentedon Aug 2, 2022
Yeah I think existing section of API docs is best for now.
jpaine126 commentedon Jan 4, 2023
I can take this task. It should be a good way for me to start contributing and learn about compression stuff.
jpaine126 commentedon Jan 4, 2023
I've spent some time reading through trying to trace how the compression args get used. I figured it would be useful to at least link to where you could find what compression options are valid, but I'm having trouble finding somewhere that lists out available compressions thats not just buried in the source code somewhere. It is alright to have these be essentially "here is the usage for these args to control compression" and leave figuring out what all the options are to the end user?
krokosik commentedon Mar 1, 2023
@jpaine126 have you checked the available compression args of the underlying libraries? I know that zarr explains them pretty well in their docs
abslock128w commentedon Feb 3, 2026
Hi, I’d like to work on this issue.
I plan to add documentation to the existing Zarr and Parquet sections explaining how to pass compression and compression-level arguments, with links to the underlying library docs.
Please let me know if that sounds good.
ncclementi commentedon Feb 3, 2026
Thanks @abslock128w adding docs here https://docs.dask.org/en/stable/array-creation.html#zarr on how to pass compression level arguments, like it's explained in here https://dask.discourse.group/t/compression-levels-while-storing-dask-dataframe-dask-array/910/2 would be a nice addition.
For the parquet case, it seems like for
to_parquetthe API docs are very clear about compression see this docs https://docs.dask.org/en/stable/generated/dask.dataframe.to_parquet.html#dask.dataframe.to_parquet , so I don't think we need that part.In case you haven't seen it, here are the guidelines on how to contribute to docs https://docs.dask.org/en/latest/develop.html#contributing-to-documentation
abslock128w commentedon Feb 3, 2026
Hey thanks for the pointers! I’ll work on adding a short section
to the Zarr docs explaining how to pass compression arguments.
abslock128w commentedon Feb 3, 2026
Hey! I opened a PR adding a short example showing how to pass compression settings to to_zarr via storage_options.
Happy to work on wording if needed