append dataframe to csv file and increase the row numbers in the csv file python code example Example: pandas append csv files a+ df.to_csv('my_csv.csv', mode='a', header=False)