added in-memory conversion to excel file

This commit is contained in:
augustin_s committed 2022-05-22 17:16:15 +02:00
1 parent 7cd47d62f2
commit 22ce635f14
1 file changed
+11
+11
View File
@@ -16,3 +16,14 @@ class DateFrameHolder:
from io import BytesIO
def to_excel_binary(df):
with BytesIO() as out:
df.to_excel(out)
res = out.getvalue()
return res