Skip to content

Commit a80ffdb

Browse files
DOC: Update doc of parquet compression parameter (#51554)
1 parent 4088e8a commit a80ffdb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/frame.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -2801,8 +2801,12 @@ def to_parquet(
28012801
``io.parquet.engine`` is used. The default ``io.parquet.engine``
28022802
behavior is to try 'pyarrow', falling back to 'fastparquet' if
28032803
'pyarrow' is unavailable.
2804-
compression : {{'snappy', 'gzip', 'brotli', None}}, default 'snappy'
2804+
compression : str or None, default 'snappy'
28052805
Name of the compression to use. Use ``None`` for no compression.
2806+
The supported compression methods actually depend on which engine
2807+
is used. For 'pyarrow', 'snappy', 'gzip', 'brotli', 'lz4', 'zstd'
2808+
are all supported. For 'fastparquet', only 'gzip' and 'snappy' are
2809+
supported.
28062810
index : bool, default None
28072811
If ``True``, include the dataframe's index(es) in the file output.
28082812
If ``False``, they will not be written to the file.

0 commit comments

Comments
 (0)