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

Function f

pandas/core/common.py:541–545  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

539 """
540
541 def f(x):
542 if x in mapper:
543 return mapper[x]
544 else:
545 return x
546
547 return f if isinstance(mapper, (abc.Mapping, ABCSeries)) else mapper
548

Callers 4

_fMethod · 0.70
nancorrFunction · 0.70
_apply_strMethod · 0.70
rename_axisMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected