Styler.set_properties(self, subset=None, **kwargs)
[source]
Convenience method for setting one or more non-data dependent properties or each cell.
Parameters: |
|
---|---|
Returns: |
|
>>> df = pd.DataFrame(np.random.randn(10, 4)) >>> df.style.set_properties(color="white", align="right") >>> df.style.set_properties(**{'background-color': 'yellow'})
© 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.25.0/reference/api/pandas.io.formats.style.Styler.set_properties.html