pandas.io.formats.style.Styler.applymap
-
Styler.applymap(func, subset=None, **kwargs)[source] -
Apply a function elementwise, updating the HTML representation with the result.
Parameters: -
func : function -
funcshould take a scalar and return a scalar -
subset : IndexSlice -
a valid indexer to limit
datato before applying the function. Consider using a pandas.IndexSlice -
kwargs : dict -
pass along to
func
Returns: -
self : Styler
See also
-
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.24.2/reference/api/pandas.io.formats.style.Styler.applymap.html