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 function column-wise, row-wise, or table-wise, updating the HTML representation with the result. |
|
Apply a function elementwise, updating the HTML representation with the result. |
|
Apply a function elementwise, updating the HTML representation with a style which is selected in accordance with the return value of a function. |
|
Format the text display value of cells. |
|
Set the precision used to render. |
|
Set the table styles on a Styler. |
|
Set the table attributes. |
|
Set the caption on a Styler |
|
Convenience method for setting one or more non-data dependent properties or each cell. |
|
Set the uuid for a Styler. |
Reset the styler, removing any previously applied styles. |
|
|
Apply |
Builtin styles¶
|
Highlight the maximum by shading the background. |
|
Highlight the minimum by shading the background. |
|
Shade the background |
|
Color the background in a gradient according to the data in each column (optionally row). |
|
Draw bar chart in the cell backgrounds. |
Style export and import¶
|
Render the built up styles to HTML. |
Export the styles to applied to the current Styler. |
|
|
Set the styles on the current Styler, possibly using styles from |
|
Write Styler to an Excel sheet. |