Skip to content

Commit b81dd0f

Browse files
FEAT: Added Create functionality to append mode of ExcelWriter when file doesn't exist
1 parent 62c1905 commit b81dd0f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pandas/io/excel/_base.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,11 +1254,6 @@ def __init__(
12541254
ext = os.path.splitext(path)[-1]
12551255
self.check_extension(ext)
12561256

1257-
# If file does not exist, and in append mode, switch to write mode.
1258-
if isinstance(path, str) and "a" in mode and not os.path.exists(path):
1259-
mode = mode.replace("a", "w")
1260-
if_sheet_exists = None
1261-
12621257
# use mode to open the file
12631258
if "b" not in mode:
12641259
mode += "b"

0 commit comments

Comments
 (0)