From 89821514b8b54cacd295a11cd6ceae6e99700f01 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 20 Nov 2024 10:43:12 +0530 Subject: [PATCH 1/2] DOC: fix SA01 for pandas.errors.AttributeConflictWarning --- ci/code_checks.sh | 1 - pandas/errors/__init__.py | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 53690e9b78b8a..fe45ce02d5e44 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -114,7 +114,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.resample.Resampler.std SA01" \ -i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \ -i "pandas.core.resample.Resampler.var SA01" \ - -i "pandas.errors.AttributeConflictWarning SA01" \ -i "pandas.errors.ChainedAssignmentError SA01" \ -i "pandas.errors.DuplicateLabelError SA01" \ -i "pandas.errors.IntCastingNaNError SA01" \ diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index cacbfb49c311f..698ece8a647b5 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -672,6 +672,12 @@ class AttributeConflictWarning(Warning): name than the existing index on an HDFStore or attempting to append an index with a different frequency than the existing index on an HDFStore. + See Also + -------- + HDFStore : Dict-like IO interface for storing pandas objects in PyTables. + DataFrame.to_hdf : Write the contained data to an HDF5 file using HDFStore. + read_hdf : Read from the store, close it if we opened it. + Examples -------- >>> idx1 = pd.Index(["a", "b"], name="name1") From 93eaaccc81148b01dcdaf1491680d80e88597843 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 20 Nov 2024 10:45:09 +0530 Subject: [PATCH 2/2] DOC: fix SA01 for pandas.errors.AttributeConflictWarning --- pandas/errors/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 698ece8a647b5..84f7239c6549d 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -676,7 +676,7 @@ class AttributeConflictWarning(Warning): -------- HDFStore : Dict-like IO interface for storing pandas objects in PyTables. DataFrame.to_hdf : Write the contained data to an HDF5 file using HDFStore. - read_hdf : Read from the store, close it if we opened it. + read_hdf : Read from an HDF5 file into a DataFrame. Examples --------