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

Method map

pandas/tests/apply/conftest.py:24–26  ·  view source on GitHub ↗
(data, func, args, kwargs, decorator, skip_na)

Source from the content-addressed store, hash-verified

22 """
23
24 def map(data, func, args, kwargs, decorator, skip_na):
25 kwargs_to_pass = kwargs if isinstance(data, DataFrame) else {}
26 return data.map(func, na_action="ignore" if skip_na else None, **kwargs_to_pass)
27
28 def apply(data, func, args, kwargs, decorator, axis):
29 if isinstance(data, Series):

Callers 15

_apply_ruleMethod · 0.45
test_mapMethod · 0.45
test_map_callableFunction · 0.45
test_list_raisesFunction · 0.45
test_map_datetimeFunction · 0.45
test_map_decimalFunction · 0.45
test_map_box_dt64Function · 0.45
test_map_box_dt64tzFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected