提交 048520f6 编写于 作者: T tomtao 提交者: Gitee

修改方法为ExcelWriter

上级 0b9aa7ff
......@@ -67,8 +67,8 @@ class DownloadFile(Resource):
"""
try:
bytes_io = io.BytesIO()
writer = pd.ExcelFile( # pylint: disable=abstract-class-instantiated
bytes_io, engine='xlsxwriter')
writer = pd.ExcelWriter( # pylint: disable=abstract-class-instantiated
bytes_io, engine='xlsxwrite')
data_frame.to_excel(writer, sheet_name='Summary', index=False)
writer.save()
writer.close()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册