Back
In the pandas, you can specify the write method in the CSV function. 'a' is used for appending.
Code to be used:
df.to_csv('my_csv.csv', mode='a', header=False)
If you are a beginner and want to know more about Data Science the do check out the Data Science course
31k questions
32.8k answers
501 comments
693 users