diff --git a/pandas/io/formats/style.py b/pandas/io/formats/style.py index f77778ee45ae3..f883d9de246ab 100644 --- a/pandas/io/formats/style.py +++ b/pandas/io/formats/style.py @@ -3602,13 +3602,12 @@ def from_custom_template( Examples -------- - >>> from pandas.io.formats.style import Styler # doctest: +SKIP - >>> from IPython.display import HTML # doctest: +SKIP - >>> df = pd.DataFrame({"A": [1, 2]}) # doctest: +SKIP - >>> path = "path/to/template" # doctest: +SKIP - >>> file = "template.tpl" # doctest: +SKIP - >>> EasyStyler = Styler.from_custom_template(path, file) # doctest: +SKIP - >>> HTML(EasyStyler(df).to_html(table_title="Another Title")) # doctest: +SKIP + >>> from pandas.io.formats.style import Styler + >>> EasyStyler = Styler.from_custom_template("path/to/template", + ... "template.tpl", + ... ) # doctest: +SKIP + >>> df = pd.DataFrame({"A": [1, 2]}) + >>> EasyStyler(df) # doctest: +SKIP Please see: `Table Visualization <../../user_guide/style.ipynb>`_ for more examples.