Styler.applymap()

Styler.applymap(func, subset=None, **kwargs) [source]

Apply a function elementwise, updating the HTML representation with the result.

New in version 0.17.1.

Parameters:

func : function

func should take a scalar and return a scalar

subset : IndexSlice

a valid indexer to limit data to before applying the function. Consider using a pandas.IndexSlice

kwargs : dict

pass along to func

Returns:

self : Styler

doc_Pandas
2017-01-12 04:55:32
Comments
Leave a Comment

Please login to continue.