Method
map
(self, mapper, na_action: Literal["ignore"] | None = None)
Source from the content-addressed store, hash-verified
| 762 | |
| 763 | @ravel_compat |
| 764 | def map(self, mapper, na_action: Literal["ignore"] | None = None): |
| 765 | from pandas import Index |
| 766 | |
| 767 | result = map_array(self, mapper, na_action=na_action) |
| 768 | result = Index(result) |
| 769 | |
| 770 | if isinstance(result, ABCMultiIndex): |
| 771 | return result.to_numpy() |
| 772 | else: |
| 773 | return result.array |
| 774 | |
| 775 | def isin(self, values: ArrayLike) -> npt.NDArray[np.bool_]: |
| 776 | """ |
Callers
nothing calls this directly
Tested by
no test coverage detected