Skip to content

Commit

Permalink
DOC: adding e to get_indexer_for (pandas-dev#35498)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhlim committed Aug 10, 2020
1 parent f14a9e5 commit d902013
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4690,6 +4690,12 @@ def get_indexer_for(self, target, **kwargs):
-------
numpy.ndarray
List of indices.
Examples
--------
>>> idx = pd.Index([np.nan, 'var1', np.nan])
>>> idx.get_indexer_for([np.nan])
array([0, 2])
"""
if self.is_unique:
return self.get_indexer(target, **kwargs)
Expand Down

0 comments on commit d902013

Please sign in to comment.