Skip to content

Commit d226ae5

Browse files
author
Joeperdefloep
committed
moved if_sheet_exists docs to pandas-dev#42222
1 parent 6865f2a commit d226ae5

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

pandas/io/excel/_base.py

-11
Original file line numberDiff line numberDiff line change
@@ -754,17 +754,6 @@ class ExcelWriter(metaclass=abc.ABCMeta):
754754
>>> with ExcelWriter("path_to_file.xlsx", mode="a", engine="openpyxl") as writer:
755755
... df.to_excel(writer, sheet_name="Sheet3")
756756
757-
Here, the `if_sheet_exists` parameter can be set to replace a sheet if it
758-
already exists:
759-
760-
>>> with ExcelWriter(
761-
... "path_to_file.xlsx",
762-
... mode="a",
763-
... engine="openpyxl",
764-
... if_sheet_exists="replace"
765-
... ) as writer:
766-
... df.to_excel(writer, sheet_name="Sheet1")
767-
768757
You can specify arguments to the underlying engine. For example to not
769758
calculate the result of a formula:
770759

0 commit comments

Comments
 (0)