@@ -316,14 +316,14 @@ chunksize : int, default ``None``
316316Quoting, compression, and file format
317317+++++++++++++++++++++++++++++++++++++
318318
319- compression : {``'infer' ``, ``'gzip' ``, ``'bz2' ``, ``'zip' ``, ``'xz' ``, ``None ``, ``dict ``}, default ``'infer' ``
319+ compression : {``'infer' ``, ``'gzip' ``, ``'bz2' ``, ``'zip' ``, ``'xz' ``, ``'zstd' ``, `` None ``, ``dict ``}, default ``'infer' ``
320320 For on-the-fly decompression of on-disk data. If 'infer', then use gzip,
321- bz2, zip, or xz if ``filepath_or_buffer `` is path-like ending in '.gz', '.bz2',
322- '.zip', or '.xz', respectively, and no decompression otherwise. If using 'zip',
321+ bz2, zip, xz, or zstandard if ``filepath_or_buffer `` is path-like ending in '.gz', '.bz2',
322+ '.zip', '.xz', '.zst ', respectively, and no decompression otherwise. If using 'zip',
323323 the ZIP file must contain only one data file to be read in.
324324 Set to ``None `` for no decompression. Can also be a dict with key ``'method' ``
325- set to one of {``'zip' ``, ``'gzip' ``, ``'bz2' ``} and other key-value pairs are
326- forwarded to ``zipfile.ZipFile ``, ``gzip.GzipFile ``, or ``bz2.BZ2File ``.
325+ set to one of {``'zip' ``, ``'gzip' ``, ``'bz2' ``, `` 'zstd' `` } and other key-value pairs are
326+ forwarded to ``zipfile.ZipFile ``, ``gzip.GzipFile ``, ``bz2.BZ2File ``, or `` zstandard.ZstdDecompressor ``.
327327 As an example, the following could be passed for faster compression and to
328328 create a reproducible gzip archive:
329329 ``compression={'method': 'gzip', 'compresslevel': 1, 'mtime': 1} ``.
@@ -4032,18 +4032,18 @@ Compressed pickle files
40324032'''''''''''''''''''''''
40334033
40344034:func: `read_pickle `, :meth: `DataFrame.to_pickle ` and :meth: `Series.to_pickle ` can read
4035- and write compressed pickle files. The compression types of ``gzip ``, ``bz2 ``, ``xz `` are supported for reading and writing.
4035+ and write compressed pickle files. The compression types of ``gzip ``, ``bz2 ``, ``xz ``, `` zstd `` are supported for reading and writing.
40364036The ``zip `` file format only supports reading and must contain only one data file
40374037to be read.
40384038
40394039The compression type can be an explicit parameter or be inferred from the file extension.
4040- If 'infer', then use ``gzip ``, ``bz2 ``, ``zip ``, or ``xz `` if filename ends in ``'.gz' ``, ``'.bz2' ``, ``'.zip' ``, or
4041- ``'.xz' ``, respectively.
4040+ If 'infer', then use ``gzip ``, ``bz2 ``, ``zip ``, ``xz ``, `` zstd `` if filename ends in ``'.gz' ``, ``'.bz2' ``, ``'.zip' ``,
4041+ ``'.xz' ``, or `` '.zst' ``, respectively.
40424042
40434043The compression parameter can also be a ``dict `` in order to pass options to the
40444044compression protocol. It must have a ``'method' `` key set to the name
40454045of the compression protocol, which must be one of
4046- {``'zip' ``, ``'gzip' ``, ``'bz2' ``}. All other key-value pairs are passed to
4046+ {``'zip' ``, ``'gzip' ``, ``'bz2' ``, `` 'xz' ``, `` 'zstd' `` }. All other key-value pairs are passed to
40474047the underlying compression library.
40484048
40494049.. ipython :: python
0 commit comments