0

How can i add more dataframe to a .txt.

content.to_csv('file.txt', index=None)

DataFrame

df = pd.DataFrame({'Name':['John','Jack','Fred']})
  • 7
    Does this answer your question? [How to add pandas data to an existing csv file?](https://stackoverflow.com/questions/17530542/how-to-add-pandas-data-to-an-existing-csv-file) – Fourier Jan 24 '20 at 13:22
  • can you please be more clear on your question – Hari Jan 24 '20 at 13:35
  • @Hari i created a .txt file using pandas, but i want to add more content. For example the .txt file contains name of student, so i want to create another dataframe (containing names of more student) and add to the previous .txt file, just like how dataframes can be added to .csv – olaniyan oluwasegun Jan 24 '20 at 13:55

0 Answers0