Styler.format()

pandas.io.formats.style.Styler.format

Styler.format(formatter, subset=None) [source]

Format the text display value of cells.

New in version 0.18.0.

Parameters:

formatter: str, callable, or dict

subset: IndexSlice

An argument to DataFrame.loc that restricts which elements formatter