how to append rows to a csv file in python with pandas code example Example: pandas append csv files a+ df.to_csv('my_csv.csv', mode='a', header=False)