pandas.io.formats.style.Styler.set_table_attributes — pandas 3.0.0.dev0+2104.ge637b4290d documentation (original) (raw)
- API reference
- Style
- pandas.io.formats.style.Styler.set_table_attributes
Styler.set_table_attributes(attributes)[source]#
Set the table attributes added to the <table>
HTML element.
These are items in addition to automatic (by default) id
attribute.
Parameters:
attributesstr
Table attributes to be added to the <table>
HTML element.
Returns:
Styler
Instance of class with specified table attributes set.
Examples
df = pd.DataFrame(np.random.randn(10, 4)) df.style.set_table_attributes('class="pure-table"')