So far I do it pretty manually:
df1 = pd.read_excel('/Users/user/Downloads/1.xlsx')
df2 = pd.read_excel('/Users/user/Downloads/2.xlsx')
df3 = pd.read_excel('/Users/user/Downloads/3.xlsx')
with ExcelWriter('excels.xlsx') as writer:
df1.to_excel(writer, sheet_name='1')
df2.to_excel(writer, sheet_name='2')
df3.to_excel(writer, sheet_name='3')
But ultimately I want to make it so I can automatically get the files pulled in from a folder and just have them become sheets. So far I have:
excel_names = ["1.xlsx", "2.xlsx", "3.xlsx"]
excels = [pd.ExcelFile(name) for name in excel_names]
But I can't figure out how to save them as multiple sheets.