From 201e13e4aac0d464c9630c67357d80331f8591da Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 10:56:32 +0530 Subject: [PATCH 1/2] DOC: remove PR07,SA01 in pandas.Index.get_indexer_non_unique --- pandas/core/indexes/base.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py index 054f522e7a37b..35da5e79a69e9 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -5843,6 +5843,7 @@ def _should_fallback_to_positional(self) -> bool: Parameters ---------- target : %(target_klass)s + An iterable containing the values to be used for computing indexer. Returns ------- @@ -5854,6 +5855,12 @@ def _should_fallback_to_positional(self) -> bool: An indexer into the target of the values not found. These correspond to the -1 in the indexer array. + See Also + -------- + Index.get_indexer : Computes indexer and mask for new index given + the current index. + Index.get_indexer_for : Returns an indexer even when non-unique. + Examples -------- >>> index = pd.Index(['c', 'b', 'a', 'b', 'b']) From 2f11c960352a1360b75adbced295e9456e834445 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 10:57:03 +0530 Subject: [PATCH 2/2] DOC: remove PR07,SA01 in pandas.Index.get_indexer_non_unique --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f49bfb1581332..af66bde0326cc 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -89,7 +89,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.Index PR07" \ -i "pandas.Index.get_indexer PR07,SA01" \ -i "pandas.Index.get_indexer_for PR01,SA01" \ - -i "pandas.Index.get_indexer_non_unique PR07,SA01" \ -i "pandas.Index.get_loc PR07,RT03,SA01" \ -i "pandas.Index.join PR07,RT03,SA01" \ -i "pandas.Index.names GL08" \