Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

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='	')

    for row in csvin:
        tsvout.writerow(row)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #convert #csv #tsv
ADD COMMENT
Topic
Name
4+5 =