Styler.
set_properties
Method to set one or more non-data dependent properties or each cell.
A valid slice for data to limit the style application to.
data
A dictionary of property, value pairs to be set for each cell.
Examples
>>> df = pd.DataFrame(np.random.randn(10, 4)) >>> df.style.set_properties(color="white", align="right") >>> df.style.set_properties(**{'background-color': 'yellow'})