FileName_List = ["AAPL", "GME", "MSFT", "NTDOY", "Z"]
# Create ExcelWriter object
df_list = []
for FileName in FileName_List:
ReadName = FileName + ".csv"
Raw_Data = pd.read_csv(ReadName, sep = ",")
# PRETEND THAT THERE'S CODE HERE THAT ACTUALLY MANIPULATES THE DATA
# Append to df list
df_list.append(Raw_Data)
with pd.ExcelWriter('Final_Output.xlsx') as writer:
for FileName, df in zip(FileName_List, df_list):
# Write to excel sheet with writer object
df.to_excel(writer, sheet_name=FileName)