We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Styler.format()
1 parent 41db572 commit 284758dCopy full SHA for 284758d
pandas/io/formats/style_render.py
@@ -1110,7 +1110,7 @@ def format(
1110
1111
>>> df = pd.DataFrame({"A": [1, 0, -1]})
1112
>>> pseudo_css = "number-format: 0§[Red](0)§-§@;"
1113
- >>> df.style.applymap(lambda v: css).to_excel("formatted_file.xlsx")
+ >>> df.style.applymap(lambda: pseudo_css).to_excel("formatted_file.xlsx")
1114
... # doctest: +SKIP
1115
1116
.. figure:: ../../_static/style/format_excel_css.png
0 commit comments