MCPcopy
hub / github.com/pandas-dev/pandas / map

Method map

pandas/core/arrays/datetimelike.py:764–773  ·  view source on GitHub ↗
(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

Calls 3

map_arrayFunction · 0.90
IndexClass · 0.90
to_numpyMethod · 0.45

Tested by

no test coverage detected