Extra rows in data file

OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 3.2.4
Standard Standalone? (y/n) y
What are you trying to achieve?: save data without extra blank rows

What did you try to make it work?: move the code into various different positions within the loop.
pm nback.psyexp (64.7 KB) WORDS FOR EXPERIMENT.xlsx (11.5 KB) 54_pm nback_2019_Nov_26_1510.csv (5.5 KB)