Skip to content

Commit

Permalink
DOC: Update doc of parquet compression parameter (pandas-dev#51554)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristofKaufmann authored Feb 25, 2023
1 parent 4088e8a commit a80ffdb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2801,8 +2801,12 @@ def to_parquet(
``io.parquet.engine`` is used. The default ``io.parquet.engine``
behavior is to try 'pyarrow', falling back to 'fastparquet' if
'pyarrow' is unavailable.
compression : {{'snappy', 'gzip', 'brotli', None}}, default 'snappy'
compression : str or None, default 'snappy'
Name of the compression to use. Use ``None`` for no compression.
The supported compression methods actually depend on which engine
is used. For 'pyarrow', 'snappy', 'gzip', 'brotli', 'lz4', 'zstd'
are all supported. For 'fastparquet', only 'gzip' and 'snappy' are
supported.
index : bool, default None
If ``True``, include the dataframe's index(es) in the file output.
If ``False``, they will not be written to the file.
Expand Down

0 comments on commit a80ffdb

Please sign in to comment.