Skip to content

Commit ffd8b00

Browse files
authored
Fix styler excel example - take 2 (#49996)
* fix styler excel example TypeError: <lambda>() takes 0 positional arguments but 1 was given * remove doctest: +SKIP
1 parent 474a528 commit ffd8b00

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/io/formats/style_render.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,8 +1110,7 @@ def format(
11101110
11111111
>>> df = pd.DataFrame({"A": [1, 0, -1]})
11121112
>>> pseudo_css = "number-format: 0§[Red](0)§-§@;"
1113-
>>> df.style.applymap(lambda: pseudo_css).to_excel("formatted_file.xlsx")
1114-
... # doctest: +SKIP
1113+
>>> df.style.applymap(lambda v: pseudo_css).to_excel("formatted_file.xlsx")
11151114
11161115
.. figure:: ../../_static/style/format_excel_css.png
11171116
"""

0 commit comments

Comments
 (0)