📜  如何使用python代码示例在excel中保存第二张表

📅  最后修改于: 2022-03-11 14:45:05.775000             🧑  作者: Mango

代码示例4
with pd.ExcelWriter('mult_sheets_1.xlsx') as writer1:
    df_1.to_excel(writer1, sheet_name = 'df_1', index = False)
    df_2.to_excel(writer1, sheet_name = 'df_2', index = False)