Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how save second sheet in excel using python

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)
Source by pythoninoffice.com #
 
PREVIOUS NEXT
Tagged: #save #sheet #excel #python
ADD COMMENT
Topic
Name
1+1 =