Skip to content

Commit 1f6bc74

Browse files
committed
DOC: Add documentation regarding no compression in to_parquet
1 parent f6c0f8a commit 1f6bc74

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pandas/core/frame.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,8 @@ def to_parquet(self, fname, engine='auto', compression='snappy',
16711671
'io.parquet.engine' is used. If 'auto', then the first
16721672
library to be installed is used.
16731673
compression : str, optional, default 'snappy'
1674-
compression method, includes {'gzip', 'snappy', 'brotli'}
1674+
Available compression methods are {'gzip', 'snappy', 'brotli'}
1675+
Use `None` for no compression.
16751676
kwargs
16761677
Additional keyword arguments passed to the engine
16771678
"""

pandas/io/parquet.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def to_parquet(df, path, engine='auto', compression='snappy', **kwargs):
219219
'io.parquet.engine' is used. If 'auto', then the first
220220
library to be installed is used.
221221
compression : str, optional, default 'snappy'
222-
compression method, includes {'gzip', 'snappy', 'brotli'}
222+
Available compression methods are {'gzip', 'snappy', 'brotli'}
223+
Use `None` for no compression.
223224
kwargs
224225
Additional keyword arguments passed to the engine
225226
"""

0 commit comments

Comments
 (0)