Skip to content

Commit 66daafc

Browse files
DOC: Enforce Numpy Docstring Validation for pandas.Index.get_indexer_non_unique (#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 b804d9e commit 66daafc

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
@@ -5850,6 +5850,7 @@ def _should_fallback_to_positional(self) -> bool:
58505850
Parameters
58515851
----------
58525852
target : %(target_klass)s
5853+
An iterable containing the values to be used for computing indexer.
58535854
58545855
Returns
58555856
-------
@@ -5861,6 +5862,12 @@ def _should_fallback_to_positional(self) -> bool:
58615862
An indexer into the target of the values not found.
58625863
These correspond to the -1 in the indexer array.
58635864
5865+
See Also
5866+
--------
5867+
Index.get_indexer : Computes indexer and mask for new index given
5868+
the current index.
5869+
Index.get_indexer_for : Returns an indexer even when non-unique.
5870+
58645871
Examples
58655872
--------
58665873
>>> index = pd.Index(['c', 'b', 'a', 'b', 'b'])

0 commit comments

Comments
 (0)