From 206af433495c74a6a4b07e19ea2b7df153075f74 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Sun, 15 Sep 2024 12:08:17 +0530 Subject: [PATCH 1/2] DOC: fix SA01 for pandas.errors.MergeError --- ci/code_checks.sh | 1 - pandas/errors/__init__.py | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 73b389e427648..97297c8e58e53 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -195,7 +195,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.errors.IntCastingNaNError SA01" \ -i "pandas.errors.InvalidIndexError SA01" \ -i "pandas.errors.InvalidVersion SA01" \ - -i "pandas.errors.MergeError SA01" \ -i "pandas.errors.NullFrequencyError SA01" \ -i "pandas.errors.NumExprClobberingError SA01" \ -i "pandas.errors.NumbaUtilError SA01" \ diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index 2f625090e0492..d73d658ce52cc 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -261,6 +261,15 @@ class MergeError(ValueError): Subclass of ``ValueError``. + See Also + -------- + DataFrame.join : For joining DataFrames on their indexes. + merge : For merging two DataFrames on a common set of keys. + ValueError : Base class for exceptions related to invalid arguments. + NotImplementedError : A built-in exception that can also be used for abstract + methods but lacks the specificity of `AbstractMethodError` in indicating + the need for subclass implementation. + Examples -------- >>> left = pd.DataFrame( From 00cbae3570986d0ce5dd56f2817ac558b11ee538 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Mon, 16 Sep 2024 00:57:01 +0530 Subject: [PATCH 2/2] DOC: fix SA01 for pandas.errors.MergeError Co-authored-by: mroeschke --- pandas/errors/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pandas/errors/__init__.py b/pandas/errors/__init__.py index d73d658ce52cc..7851bc90c5782 100644 --- a/pandas/errors/__init__.py +++ b/pandas/errors/__init__.py @@ -265,10 +265,6 @@ class MergeError(ValueError): -------- DataFrame.join : For joining DataFrames on their indexes. merge : For merging two DataFrames on a common set of keys. - ValueError : Base class for exceptions related to invalid arguments. - NotImplementedError : A built-in exception that can also be used for abstract - methods but lacks the specificity of `AbstractMethodError` in indicating - the need for subclass implementation. Examples --------