Closed Phaust94 closed 7 years ago
Why are you copying an ExcelWriter
- not any reason I can think of do that?
Even if we did support this, it wouldn't really work - each copy would hold a separate xlsxwriter
handle to the file and would overwrite the others' changes.
In [9]: import xlsxwriter
In [10]: from xlsxwriter import Workbook
In [11]: wb = Workbook('result.xlsx')
In [12]: wb2 = Workbook('result.xlsx')
In [13]: wb.add_worksheet('tmp1')
Out[13]: <xlsxwriter.worksheet.Worksheet at 0xc6f1278>
In [14]: wb.close()
# overwrites what was done with wb
In [15]: wb2.close()
closing as won't fix. This is a mis-use of the API.
Code Sample, a copy-pastable example if possible
Problem description
For some reason it throws an error, which it shouldn't. It throws this error: TypeError: new() missing 1 required positional argument: 'path'
Expected Output
'result.xlsx'
Output of
pd.show_versions()