Skip to content

Commit cb9a9f9

Browse files
tuhinsharma121pmhatre1
authored andcommitted
DOC: Enforce Numpy Docstring Validation for pandas.Index.get_indexer_non_unique (pandas-dev#58508)
* DOC: remove PR07,SA01 in pandas.Index.get_indexer_non_unique * DOC: remove PR07,SA01 in pandas.Index.get_indexer_non_unique
1 parent 2da36d1 commit cb9a9f9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8888
-i "pandas.Grouper PR02" \
8989
-i "pandas.Index PR07" \
9090
-i "pandas.Index.get_indexer_for PR01,SA01" \
91-
-i "pandas.Index.get_indexer_non_unique PR07,SA01" \
9291
-i "pandas.Index.get_loc PR07,RT03,SA01" \
9392
-i "pandas.Index.join PR07,RT03,SA01" \
9493
-i "pandas.Index.names GL08" \

pandas/core/indexes/base.py

+7
Original file line numberDiff line numberDiff line change
@@ -5831,6 +5831,7 @@ def _should_fallback_to_positional(self) -> bool:
58315831
Parameters
58325832
----------
58335833
target : %(target_klass)s
5834+
An iterable containing the values to be used for computing indexer.
58345835
58355836
Returns
58365837
-------
@@ -5842,6 +5843,12 @@ def _should_fallback_to_positional(self) -> bool:
58425843
An indexer into the target of the values not found.
58435844
These correspond to the -1 in the indexer array.
58445845
5846+
See Also
5847+
--------
5848+
Index.get_indexer : Computes indexer and mask for new index given
5849+
the current index.
5850+
Index.get_indexer_for : Returns an indexer even when non-unique.
5851+
58455852
Examples
58465853
--------
58475854
>>> index = pd.Index(['c', 'b', 'a', 'b', 'b'])

0 commit comments

Comments
 (0)