When appending to csv, my first line is starting on the existing last line rather than a new line.
I keep searching SO, but I am just finding the basic use of openi
If your dataframe gets huge and you want to avoid concatenation you could go with
import csv
with open('foo.csv','ab') as out:
writer=csv.writer(out)
writer.writerow(())
in a function or just as a snippet in your code. If you're not on Windows maybe you could avoid adding 'b' in open and open the file with just 'a' (append)