Map values using an input mapping or function. Parameters ---------- mapper : function, dict, or Series Mapping correspondence. na_action : {None, 'ignore'}, default None If 'ignore', propagate NA values, without passing them to the
(self, mapper, na_action: Literal["ignore"] | None = None)
| 2723 | return arraylike.default_array_ufunc(self, ufunc, method, *inputs, **kwargs) |
| 2724 | |
| 2725 | def map(self, mapper, na_action: Literal["ignore"] | None = None): |
| 2726 | """ |
| 2727 | Map values using an input mapping or function. |
| 2728 | |
| 2729 | Parameters |
| 2730 | ---------- |
| 2731 | mapper : function, dict, or Series |
| 2732 | Mapping correspondence. |
| 2733 | na_action : {None, 'ignore'}, default None |
| 2734 | If 'ignore', propagate NA values, without passing them to the |
| 2735 | mapping correspondence. If 'ignore' is not supported, a |
| 2736 | ``NotImplementedError`` should be raised. |
| 2737 | |
| 2738 | Returns |
| 2739 | ------- |
| 2740 | Union[ndarray, Index, ExtensionArray] |
| 2741 | The output of the mapping function applied to the array. |
| 2742 | If the function returns a tuple with more than one element |
| 2743 | a MultiIndex will be returned. |
| 2744 | """ |
| 2745 | return map_array(self, mapper, na_action=na_action) |
| 2746 | |
| 2747 | # ------------------------------------------------------------------------ |
| 2748 | # GroupBy Methods |
nothing calls this directly
no test coverage detected