👋 Hello! I'm Alphonsio the robot. Ask me a question, I'll try to answer.

save tsv dataframe

In Python, to create a tabulation delimited file from a ﻿dataframe, the best option is to use the ﻿.to_csv() method while specifying the delimiter character:

myDataframe.to_csv('filename.tsv', sep = '\t')

To prevent the index of each row from being stored in the file, add ﻿index=False as a second parameter:

myDataframe.to_csv('filename.tsv', sep = '\t', index=False)

More