pandas.Index.map
-
Index.map(mapper)
[source] -
Apply mapper function to an index.
Parameters: mapper : callable
Function to be applied.
Returns: applied : Union[Index, MultiIndex], inferred
The output of the mapping function applied to the index. If the function returns a tuple with more than one element a MultiIndex will be returned.
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.22.0/generated/pandas.Index.map.html