pandas.io.formats.style.Styler.from_custom_template
-
classmethod Styler.from_custom_template(searchpath, name)[source] -
Factory function for creating a subclass of
Stylerwith a custom template and Jinja environment.Parameters: -
searchpath : str or list -
Path or paths of directories containing the templates
-
name : str -
Name of your custom template to use for rendering
Returns: -
MyStyler : subclass of Styler -
has the correct
envandtemplateclass attributes set.
-
© 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.24.2/reference/api/pandas.io.formats.style.Styler.from_custom_template.html