Created
July 17, 2024 10:54
-
-
Save jmquintana79/0a69c526237b22bf6126324275279688 to your computer and use it in GitHub Desktop.
Guardado de varios dataframes en un sólo fichero excel.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# multiple pandas df tables to one excel file on multiple sheets | |
with pd.ExcelWriter(path_output, engine='xlsxwriter') as writer: | |
df1.to_excel(writer, sheet_name='sheet1') | |
df2.to_excel(writer, sheet_name='sheet2') | |
df3.to_excel(writer, sheet_name='sheet3') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment