Skip to content

Commit 87ee512

Browse files
authored
DOC: Update param doc of to_parquet about compression (#43004)
1 parent 36b9bcc commit 87ee512

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

pandas/io/parquet.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,12 @@ def to_parquet(
382382
``io.parquet.engine`` is used. The default ``io.parquet.engine``
383383
behavior is to try 'pyarrow', falling back to 'fastparquet' if
384384
'pyarrow' is unavailable.
385-
compression : {{'snappy', 'gzip', 'brotli', None}}, default 'snappy'
386-
Name of the compression to use. Use ``None`` for no compression.
385+
compression : {{'snappy', 'gzip', 'brotli', 'lz4', 'zstd', None}},
386+
default 'snappy'. Name of the compression to use. Use ``None``
387+
for no compression. The supported compression methods actually
388+
depend on which engine is used. For 'pyarrow', 'snappy', 'gzip',
389+
'brotli', 'lz4', 'zstd' are all supported. For 'fastparquet',
390+
only 'gzip' and 'snappy' are supported.
387391
index : bool, default None
388392
If ``True``, include the dataframe's index(es) in the file output. If
389393
``False``, they will not be written to the file.

0 commit comments

Comments
 (0)