I am working with my thesis data where I have multiple people performing the same number of experiments. So person x has experiment 1 to 7 and so on.
I have managed to create 7 seperate excel files for each person. But what I need is one Excel file for person x, with 7 sheets with the results of each experiment.
I have searched quite a lot and I can't seem to find a fitting solution, I hope someone can help me.
counter_scenario = 1
wb = load_workbook(f'ID01_S{counter_scenario}.xlsx')
wb.create_sheet(f'ID01_S{counter_scenario}')
wb.save('ID01_No crash.xlsx')
counter_scenario += 1
What I get now is a file which overwrites the previous sheet. So in the end I only have one sheet with the data from experiment 7. Whilst I run the code the "master file" keeps updating, which (to me) indicates that data is written to it, it just overwrites it.