From aa080e5eb781ca637868e7a28bb7de1dd86b7438 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 10:41:03 +0530 Subject: [PATCH 1/4] DOC: add PR07,SA01 in pandas.Index.get_indexer --- 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..46da27e216986 100644 --- a/pandas/core/indexes/base.py +++ b/pandas/core/indexes/base.py @@ -3543,6 +3543,7 @@ def get_indexer( Parameters ---------- target : Index + An iterable containing the values to be used for computing indexer. method : {None, 'pad'/'ffill', 'backfill'/'bfill', 'nearest'}, optional * default: exact matches only. * pad / ffill: find the PREVIOUS index value if no exact match. @@ -3570,6 +3571,12 @@ def get_indexer( positions matches the corresponding target values. Missing values in the target are marked by -1. + See Also + -------- + Index.get_indexer_for : Returns an indexer even when non-unique. + Index.get_non_unique : Returns indexer and masks for new index given + the current index. + Notes ----- Returns -1 for unmatched values, for further explanation see the From db6cf69bb95f80222de1a8518189dfb37663edc3 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 10:42:18 +0530 Subject: [PATCH 2/4] DOC: remove PR07,SA01 in pandas.Index.get_indexer --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index f49bfb1581332..6c27f43f8fbea 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -87,7 +87,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DataFrame.var PR01,RT03,SA01" \ -i "pandas.Grouper PR02" \ -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" \ From 814ae5721ffd5227bf9ad5fd4300186fb5cdb348 Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 10:42:59 +0530 Subject: [PATCH 3/4] DOC: remove PR07,SA01 in pandas.IntervalIndex.get_indexer --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 6c27f43f8fbea..861d83eed633c 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -108,7 +108,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.IntervalDtype.subtype SA01" \ -i "pandas.IntervalIndex.closed SA01" \ -i "pandas.IntervalIndex.contains RT03" \ - -i "pandas.IntervalIndex.get_indexer PR07,SA01" \ -i "pandas.IntervalIndex.get_loc PR07,RT03,SA01" \ -i "pandas.IntervalIndex.is_non_overlapping_monotonic SA01" \ -i "pandas.IntervalIndex.left GL08" \ From ffcfb532b486f02e8fe6e226d9404d4338ab1d8b Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Wed, 1 May 2024 10:43:40 +0530 Subject: [PATCH 4/4] DOC: remove PR07,SA01 in pandas.MultiIndex.get_indexer --- ci/code_checks.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 861d83eed633c..91335719cf303 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -121,7 +121,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.MultiIndex.copy PR07,RT03,SA01" \ -i "pandas.MultiIndex.drop PR07,RT03,SA01" \ -i "pandas.MultiIndex.dtypes SA01" \ - -i "pandas.MultiIndex.get_indexer PR07,SA01" \ -i "pandas.MultiIndex.get_level_values SA01" \ -i "pandas.MultiIndex.get_loc PR07" \ -i "pandas.MultiIndex.get_loc_level PR07" \