pandas.io.formats.style.Styler.set_table_attributes

Styler.set_table_attributes(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.

New in version 0.17.1.

Parameters:attributes : string
Returns:self : Styler

Examples

>>> df = pd.DataFrame(np.random.randn(10, 4))
>>> df.style.set_table_attributes('class="pure-table"')
# ... <table class="pure-table"> ...
Scroll To Top