We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae5b385 commit 6baec67Copy full SHA for 6baec67
pandas/io/excel/_openpyxl.py
@@ -420,7 +420,7 @@ def write_cells(
420
421
if sheet_name in self.sheets:
422
if "r+" in self.mode:
423
- if self.if_sheet_exists in "new":
+ if self.if_sheet_exists == "new":
424
wks = self.book.create_sheet()
425
# openpyxl will create a name for the new sheet by appending digits
426
wks.title = sheet_name
0 commit comments