Select Rows from a larger trialfile according to the value of a condition

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