Styler.
applymap
Apply a function elementwise.
Updates the HTML representation with the result.
func should take a scalar and return a scalar.
func
A valid indexer to limit data to before applying the function. Consider using a pandas.IndexSlice.
data
Pass along to func.
See also
Styler.where