pandas 0.8.1 documentation

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