From 909ae021fe61a98cce714d05334e5c53fea874ec Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Thu, 12 Aug 2021 15:02:59 -0700 Subject: [PATCH 1/2] Update param doc of to_parquet. --- pandas/io/parquet.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 49384cfb2e554..31dfe6798f535 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -382,8 +382,11 @@ 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' - Name of the compression to use. Use ``None`` for no compression. + compression : {{'snappy', 'gzip', 'brotli', 'lz4', 'zstd', 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. From b2b47e8b06412de05a3a2484f631caba118a8918 Mon Sep 17 00:00:00 2001 From: Liang-Chi Hsieh Date: Fri, 13 Aug 2021 09:17:30 -0700 Subject: [PATCH 2/2] Wrap lines. --- pandas/io/parquet.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pandas/io/parquet.py b/pandas/io/parquet.py index 31dfe6798f535..e92afd4e35ca1 100644 --- a/pandas/io/parquet.py +++ b/pandas/io/parquet.py @@ -382,10 +382,11 @@ 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', 'lz4', 'zstd', 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', + compression : {{'snappy', 'gzip', 'brotli', 'lz4', 'zstd', 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