Answers for "python convert a csv to a tsv"

0

python convert a csv to a tsv

import csv

with open('D:/AddressEvaluation/NAD/NAD.csv','r') as csvin, open('D:/NAD.txt', 'w') as tsvout:
    csvin = csv.reader(csvin)
    tsvout = csv.writer(tsvout, delimiter='\t')

    for row in csvin:
        tsvout.writerow(row)
Posted by: Guest on November-09-2020

Code answers related to "python convert a csv to a tsv"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language