Skip to content

Commit 78147e9

Browse files
ylogxTomAugspurger
authored andcommitted
DOC: Add documentation regarding no compression in to_parquet (pandas-dev#19131)
1 parent 5205283 commit 78147e9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1670,8 +1670,8 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
16701670
Parquet reader library to use. If 'auto', then the option
16711671
'io.parquet.engine' is used. If 'auto', then the first
16721672
library to be installed is used.
1673-
compression : str, optional, default 'snappy'
1674-
compression method, includes {'gzip', 'snappy', 'brotli'}
1673+
compression : {'snappy', 'gzip', 'brotli', 'None'}
1674+
Name of the compression to use. Use ``None`` for no compression
16751675
kwargs
16761676
Additional keyword arguments passed to the engine
16771677
"""

pandas/io/parquet.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ def to_parquet(df, path, engine='auto', compression='snappy', **kwargs):
218218
Parquet reader library to use. If 'auto', then the option
219219
'io.parquet.engine' is used. If 'auto', then the first
220220
library to be installed is used.
221-
compression : str, optional, default 'snappy'
222-
compression method, includes {'gzip', 'snappy', 'brotli'}
221+
compression : {'snappy', 'gzip', 'brotli', 'None'}
222+
Name of the compression to use. Use ``None`` for no compression
223223
kwargs
224224
Additional keyword arguments passed to the engine
225225
"""

0 commit comments

Comments
 (0)