pandas.io.formats.style.Styler.set_table_attributes
-
Styler.set_table_attributes(attributes)[source] -
Устанавливает атрибуты таблицы. Это те элементы, которые отображаются в открывающем
<table>теге в дополнение к автоматически (по умолчанию) генерируемому id.Введено в версии 0.17.1.
Параметры: attributes : строка Возвращает: self : Styler Примеры
>>> 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.21.1/generated/pandas.io.formats.style.Styler.set_table_attributes.html