diff --git a/pandas/io/formats/style_render.py b/pandas/io/formats/style_render.py index 9244a8c5e672d..d7cb70b0f5110 100644 --- a/pandas/io/formats/style_render.py +++ b/pandas/io/formats/style_render.py @@ -1110,7 +1110,7 @@ def format( >>> df = pd.DataFrame({"A": [1, 0, -1]}) >>> pseudo_css = "number-format: 0§[Red](0)§-§@;" - >>> df.style.applymap(lambda v: css).to_excel("formatted_file.xlsx") + >>> df.style.applymap(lambda: pseudo_css).to_excel("formatted_file.xlsx") ... # doctest: +SKIP .. figure:: ../../_static/style/format_excel_css.png