pandas.DataFrame.applymap¶
-
DataFrame.
applymap
(func)¶ Apply a function to a DataFrame that is intended to operate elementwise, i.e. like doing map(func, series) for each series in the DataFrame
Parameters: func : function
Python function, returns a single value from a single value
Returns: applied : DataFrame
See also
DataFrame.apply
- For operations on rows/columns