pandas.io.formats.style.Styler.render¶
- Styler.render(**kwargs)[source]¶
Render the built up styles to HTML.
- Parameters
- **kwargs
Any additional keyword arguments are passed through to
self.template.render. This is useful when you need to provide additional variables for a custom template.
- Returns
- renderedstr
The rendered HTML.
Notes
Stylerobjects have defined the_repr_html_method which automatically callsself.render()when it’s the last item in a Notebook cell. When callingStyler.render()directly, wrap the result inIPython.display.HTMLto view the rendered HTML in the notebook.Pandas uses the following keys in render. Arguments passed in
**kwargstake precedence, so think carefully if you want to override them:head
cellstyle
body
uuid
precision
table_styles
caption
table_attributes