Style
Styler
objects are returned by pandas.DataFrame.style
.
Styler constructor
| Helps style a DataFrame or Series according to the data with HTML and CSS. |
| Factory function for creating a subclass of |
Styler properties
Style application
| Apply a CSS-styling function column-wise, row-wise, or table-wise. |
| Apply a CSS-styling function elementwise. |
| Format the text display value of cells. |
| Hide the entire index, or specific keys in the index from rendering. |
| Hide the column headers or specific keys in the columns from rendering. |
| Set the DataFrame of strings added to the |
| Set the table styles included within the |
| Set the table attributes added to the |
| Set the DataFrame of strings on |
| Set the text added to a |
| Add CSS to permanently display the index or column headers in a scrolling frame. |
| Set defined CSS-properties to each |
| Set the uuid applied to |
Reset the | |
| Apply |
Builtin styles
| Highlight missing values with a style. |
| Highlight the maximum with a style. |
| Highlight the minimum with a style. |
| Highlight a defined range with a style. |
| Highlight values defined by a quantile with a style. |
| Color the background in a gradient style. |
| Color the text in a gradient style. |
| Draw bar chart in the cell backgrounds. |
Style export and import
| Render the |
Export the styles applied to the current | |
| Set the styles on the current |
| Write Styler to a file, buffer or string in HTML-CSS format. |
| Write Styler to an Excel sheet. |
| Write Styler to a file, buffer or string in LaTeX format. |
© 2008–2021, 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/1.3.4/reference/style.html