Skip to content

Commit b977f55

Browse files
authored
Update generic.py
1 parent 945385d commit b977f55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,8 +2204,8 @@ def to_excel(
22042204
22052205
Multiple sheets may be written to by specifying unique `sheet_name`.
22062206
With all data written to the file it is necessary to save the changes.
2207-
Note that creating an `ExcelWriter` object with a file name that already
2208-
exists will result in the contents of the existing file being erased.
2207+
Note that creating an `ExcelWriter` object with a file name that already exists
2208+
will overwrite the existing file because the default mode is write.
22092209
22102210
Parameters
22112211
----------

0 commit comments

Comments
 (0)