Table Of Contents

Search

Enter search terms or a module, class or function name.

pandas.Index.map

Index.map(mapper, na_action=None)[source]

Map values of Series using input correspondence

Parameters:

mapper : function, dict, or Series

na_action : {None, ‘ignore’}

If ‘ignore’, propagate NA values, without passing them to the mapping function

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.

Scroll To Top