On this page
pandas.Index.map
- Index.map(mapper, na_action=None)[source]
 - 
    
Map values using an input mapping or function.
- Parameters
 - 
      
- mapper:function, dict, or Series
 - 
        
Mapping correspondence.
 - na_action:{None, ‘ignore’}
 - 
        
If ‘ignore’, propagate NA values, without passing them to the mapping correspondence.
 
 - 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–2022, 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/1.5.0/reference/api/pandas.Index.map.html