You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At least XlsxWriter supports writing to buffers but the ExcelWriter constructors try to read the extension of the supplied path, so it fails when you initialise it as ExcelWriter(buf, engine="xlsxwriter").
Currently you can hack that into pandas using
b = BytesIO()
w = ExcelWriter("data.xlsx", engine="xlsxwriter")
w.book = xlsxwriter.Workbook(b)
df.to_excel(w)
w.save()
b.getvalue()
but it would of course be nice if this just worked out-of-the-box. I'll try to build a PR for that.
The text was updated successfully, but these errors were encountered:
Add support for StringIO/BytesIO to ExcelWriter
Add vbench support for writing excel files
Add support for serializing lists/dicts to strings
Fix bug when reading blank excel sheets
Added xlwt to Python 3.4 builds
closespandas-dev#8188closespandas-dev#7074closespandas-dev#6403closespandas-dev#7171closespandas-dev#6947
At least XlsxWriter supports writing to buffers but the
ExcelWriter
constructors try to read the extension of the suppliedpath
, so it fails when you initialise it asExcelWriter(buf, engine="xlsxwriter")
.Currently you can hack that into pandas using
but it would of course be nice if this just worked out-of-the-box. I'll try to build a PR for that.
The text was updated successfully, but these errors were encountered: