Skip to content

Commit 428c2a6

Browse files
authored
DOC: skip a doctest that writes to disk (#50454)
1 parent dd8b718 commit 428c2a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/io/formats/style_render.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,8 @@ def format(
11251125
11261126
>>> df = pd.DataFrame({"A": [1, 0, -1]})
11271127
>>> pseudo_css = "number-format: 0§[Red](0)§-§@;"
1128-
>>> df.style.applymap(lambda v: pseudo_css).to_excel("formatted_file.xlsx")
1128+
>>> filename = "formatted_file.xlsx"
1129+
>>> df.style.applymap(lambda v: pseudo_css).to_excel(filename) # doctest: +SKIP
11291130
11301131
.. figure:: ../../_static/style/format_excel_css.png
11311132
"""

0 commit comments

Comments
 (0)