Styler.set_table_styles(self, table_styles) [source]
Set the table styles on a Styler.
These are placed in a <style> tag before the generated HTML table.
| Parameters: |
|
|---|---|
| Returns: |
|
>>> df = pd.DataFrame(np.random.randn(10, 4))
>>> df.style.set_table_styles(
... [{'selector': 'tr:hover',
... 'props': [('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_table_styles.html