xorbits.pandas.Index.get_indexer_for#
- final Index.get_indexer_for(target) npt.NDArray[np.intp] [源代码]#
Guaranteed return of an indexer even when non-unique.
This dispatches to get_indexer or get_indexer_non_unique as appropriate.
- 返回
List of indices.
- 返回类型
np.ndarray[np.intp]
实际案例
>>> idx = pd.Index([np.nan, 'var1', np.nan]) >>> idx.get_indexer_for([np.nan]) array([0, 2])
警告
This method has not been implemented yet. Xorbits will try to execute it with pandas.
This docstring was copied from pandas.core.indexes.base.Index.