You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/io.rst
+51-13
Original file line number
Diff line number
Diff line change
@@ -4067,26 +4067,64 @@ Compression
4067
4067
+++++++++++
4068
4068
4069
4069
``PyTables`` allows the stored data to be compressed. This applies to
4070
-
all kinds of stores, not just tables.
4070
+
all kinds of stores, not just tables. Two parameters are used to
4071
+
control compression: ``complevel`` and ``complib``.
4072
+
4073
+
``complevel`` specifies if and how hard data is to be compressed.
4074
+
``complevel=0`` and ``complevel=None`` disables
4075
+
compression and ``0<complevel<10`` enables compression.
4076
+
4077
+
``complib`` specifies which compression library to use. If nothing is
4078
+
specified the default library ``zlib`` is used. A
4079
+
compression library usually optimizes for either good
4080
+
compression rates or speed and the results will depend on
4081
+
the type of data. Which type of
4082
+
compression to choose depends on your specific needs and
4083
+
data. The list of supported compression libraries:
4084
+
4085
+
- `zlib <http://zlib.net/>`_: The default compression library. A classic in terms of compression, achieves good compression rates but is somewhat slow.
4086
+
- `lzo <http://www.oberhumer.com/opensource/lzo/>`_: Fast compression and decompression.
4087
+
- `bzip2 <http://bzip.org/>`_: Good compression rates.
4088
+
- `blosc <http://www.blosc.org/>`_: Fast compression and decompression.
4089
+
4090
+
.. versionadded:: 0.20.2
4091
+
4092
+
Support for alternative blosc compressors:
4093
+
4094
+
- `blosc:blosclz <http://www.blosc.org/>`_ This is the
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.21.0.txt
+1-2
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,12 @@ Backwards incompatible API changes
47
47
48
48
- Support has been dropped for Python 3.4 (:issue:`15251`)
49
49
- The Categorical constructor no longer accepts a scalar for the ``categories`` keyword. (:issue:`16022`)
50
-
51
50
- Accessing a non-existent attribute on a closed :class:`HDFStore` will now
52
51
raise an ``AttributeError`` rather than a ``ClosedFileError`` (:issue:`16301`)
53
52
- :func:`read_csv` now treats ``'null'`` strings as missing values by default (:issue:`16471`)
54
53
- :func:`read_csv` now treats ``'n/a'`` strings as missing values by default (:issue:`16078`)
55
-
56
54
- :class:`pandas.HDFStore`'s string representation is now faster and less detailed. For the previous behavior, use ``pandas.HDFStore.info()``. (:issue:`16503`).
55
+
- Compression defaults in HDF stores now follow pytable standards. Default is no compression and if ``complib`` is missing and ``complevel`` > 0 ``zlib`` is used (:issue:`15943`)
0 commit comments