Index.
map
Map values using input correspondence (a dict, Series, or function).
Mapping correspondence.
If ‘ignore’, propagate NA values, without passing them to the mapping correspondence.
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.