Trying to convert a .tsv to a .csv. This:
import csv # read tab-delimited file with open(\'DataS1_interactome.tsv\',\'rb\') as fin: cr = csv.reader(fin
import pandas as pd tsv_file='name.tsv' csv_table=pd.read_table(tsv_file,sep='\t') csv_table.to_csv('new_name.csv',index=False)
We can use the above code to convert the .tsv file to .csv file