From 0b0973c98a840b0bd85f53f8b383c56b18a5e7b0 Mon Sep 17 00:00:00 2001 From: Kadatatlu Kishore Date: Wed, 28 Jul 2021 11:31:59 +0530 Subject: [PATCH 1/2] fixes #42760 docstring in to_hdf() --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 7865cdb0455b2..1a92ecfffe5d9 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2620,7 +2620,7 @@ def to_hdf( - 'a': append, an existing file is opened for reading and writing, and if the file does not exist it is created. - 'r+': similar to 'a', but the file must already exist. - complevel : {0-9}, optional + complevel : {0-9}, default None Specifies a compression level for data. A value of 0 disables compression. complib : {'zlib', 'lzo', 'bzip2', 'blosc'}, default 'zlib' From d68a17db147a810ab799f0d223fa99a171dd9b3e Mon Sep 17 00:00:00 2001 From: Kadatatlu Kishore Date: Mon, 2 Aug 2021 11:28:48 +0530 Subject: [PATCH 2/2] Update generic.py --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 1a92ecfffe5d9..0c335d0267b2f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -2622,7 +2622,7 @@ def to_hdf( - 'r+': similar to 'a', but the file must already exist. complevel : {0-9}, default None Specifies a compression level for data. - A value of 0 disables compression. + A value of 0 or None disables compression. complib : {'zlib', 'lzo', 'bzip2', 'blosc'}, default 'zlib' Specifies the compression library to be used. As of v0.20.2 these additional compressors for Blosc are supported