added in-memory conversion to excel file
This commit is contained in:
1 parent
7cd47d62f2
commit
22ce635f14
1 file changed
+11
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user