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

func : function
Python function, returns a single value from a single value

applied : DataFrame