Prevent invalid chars in Excel sheet title
This commit is contained in:
parent
d6c4952a5f
commit
37b0434892
1 changed files with 1 additions and 0 deletions
|
|
@ -205,6 +205,7 @@ class ExcelWriter(object):
|
|||
self.book = openpyxl.Workbook()
|
||||
self.sheet = self.book.active
|
||||
if sheet_title:
|
||||
sheet_title = sheet_title.replace('/', '-')
|
||||
self.sheet.title = sheet_title
|
||||
self.number_formats = number_formats
|
||||
self.highlight_rows = highlight_rows
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue