Why are you using read_excel and dataframes rather than PsychoPy TrialHandler (either in code or as a loop)?