Styler.
set_table_attributes
Set the table attributes.
These are the items that show up in the opening <table> tag in addition to automatic (by default) id.
<table>
Examples
>>> df = pd.DataFrame(np.random.randn(10, 4)) >>> df.style.set_table_attributes('class="pure-table"') # ... <table class="pure-table"> ...