Skip to content

Commit d902013

Browse files
committed
DOC: adding e to get_indexer_for (pandas-dev#35498)
1 parent f14a9e5 commit d902013

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pandas/core/indexes/base.py

+6
Original file line numberDiff line numberDiff line change
@@ -4690,6 +4690,12 @@ def get_indexer_for(self, target, **kwargs):
46904690
-------
46914691
numpy.ndarray
46924692
List of indices.
4693+
4694+
Examples
4695+
--------
4696+
>>> idx = pd.Index([np.nan, 'var1', np.nan])
4697+
>>> idx.get_indexer_for([np.nan])
4698+
array([0, 2])
46934699
"""
46944700
if self.is_unique:
46954701
return self.get_indexer(target, **kwargs)

0 commit comments

Comments
 (0)