@@ -2406,7 +2406,7 @@ def to_json(
2406
2406
throw ValueError if incorrect 'orient' since others are not
2407
2407
list-like.
2408
2408
2409
- compression : {{'infer', 'gzip', 'bz2', 'zip', 'xz', None}}
2409
+ compression : {{'infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', None}}
2410
2410
2411
2411
A string representing the compression to use in the output file,
2412
2412
only used when the first argument is a filename. By default, the
@@ -2933,16 +2933,16 @@ def to_pickle(
2933
2933
----------
2934
2934
path : str
2935
2935
File path where the pickled object will be stored.
2936
- compression : {{'infer', 'gzip', 'bz2', 'zip', 'xz', None}}, \
2936
+ compression : {{'infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', None}}, \
2937
2937
default 'infer'
2938
2938
A string representing the compression to use in the output file. By
2939
2939
default, infers from the file extension in specified path.
2940
2940
Compression mode may be any of the following possible
2941
- values: {{‘ infer’, ‘ gzip’, ‘ bz2’, ‘ zip’, ‘xz’, None}}. If compression
2942
- mode is ‘ infer’ and path_or_buf is path-like, then detect
2941
+ values: {{' infer', ' gzip', ' bz2', ' zip', 'xz', 'zstd', None}}.
2942
+ If compression mode is ' infer' and path_or_buf is path-like, then detect
2943
2943
compression mode from the following extensions:
2944
- ‘ .gz’, ‘ .bz2’, ‘ .zip’ or ‘ .xz’ . (otherwise no compression).
2945
- If dict given and mode is ‘ zip’ or inferred as ‘ zip’ , other entries
2944
+ ' .gz', ' .bz2', ' .zip', ' .xz', '.zst' . (otherwise no compression).
2945
+ If dict given and mode is ' zip' or inferred as ' zip' , other entries
2946
2946
passed as additional compression options.
2947
2947
protocol : int
2948
2948
Int which indicates which protocol should be used by the pickler,
@@ -3406,11 +3406,11 @@ def to_csv(
3406
3406
compression : str or dict, default 'infer'
3407
3407
If str, represents compression mode. If dict, value at 'method' is
3408
3408
the compression mode. Compression mode may be any of the following
3409
- possible values: {{'infer', 'gzip', 'bz2', 'zip', 'xz', None}}. If
3410
- compression mode is 'infer' and `path_or_buf` is path-like, then
3409
+ possible values: {{'infer', 'gzip', 'bz2', 'zip', 'xz', 'zstd', None}}.
3410
+ If compression mode is 'infer' and `path_or_buf` is path-like, then
3411
3411
detect compression mode from the following extensions: '.gz',
3412
- '.bz2', '.zip' or '.xz'. (otherwise no compression). If dict given
3413
- and mode is one of {{'zip', 'gzip', 'bz2'}}, or inferred as
3412
+ '.bz2', '.zip', '.xz', '.zst '. (otherwise no compression). If dict given
3413
+ and mode is one of {{'zip', 'gzip', 'bz2', 'zstd' }}, or inferred as
3414
3414
one of the above, other entries passed as
3415
3415
additional compression options.
3416
3416
If `path_or_buf` is omitted or `None` or is a file opened in text
@@ -3426,8 +3426,7 @@ def to_csv(
3426
3426
.. versionchanged:: 1.1.0
3427
3427
3428
3428
Passing compression options as keys in dict is
3429
- supported for compression modes 'gzip' and 'bz2'
3430
- as well as 'zip'.
3429
+ supported for compression modes 'gzip', 'bz2', 'zstd', and 'zip'.
3431
3430
3432
3431
.. versionchanged:: 1.2.0
3433
3432
0 commit comments