# with headers df.to_csv('my_csv.csv', mode='a') # without headers df.to_csv('my_csv.csv', mode='a', header=None)
df.to_csv('test_scores.csv', mode='a', index=False, header=False)