Comparing map
, applymap
and ap
ply
: Context Matters
First major difference: DEFINITION
-
map
is defined on Series ONLY -
applymap
is defined on DataFrames ONLY -
apply
is defined on BOTH
Second major difference: INPUT ARGUMENT
-
map
acceptsdict
s,Series
, or callable -
applymap
andapply
accept callables only
…
Top comments (0)