Styler.set_table_attributes(self, attributes)
[source]
Set the table attributes.
These are the items that show up in the opening <table>
tag in addition to to automatic (by default) id.
Parameters: |
|
---|---|
Returns: |
|
>>> df = pd.DataFrame(np.random.randn(10, 4)) >>> df.style.set_table_attributes('class="pure-table"') # ... <table class="pure-table"> ...
© 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_attributes.html