python append data to csv code example
Example 1: pandas append csv files a+
df.to_csv('my_csv.csv', mode='a', header=False)
Example 2: append to csv python
with open('document.csv','a') as fd:
fd.write(myCsvRow)
df.to_csv('my_csv.csv', mode='a', header=False)
with open('document.csv','a') as fd:
fd.write(myCsvRow)