Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

read tsv file column

#for example you have 4 column age,gender,name,adress 
#if you want to gender you should give "line[1]" for arraylist
with open("train.tsv",encoding='utf8') as tsvfile:
    tsvreader = csv.reader(tsvfile, delimiter="	")
    for line in tsvreader:
        print(line[1])
 
PREVIOUS NEXT
Tagged: #read #tsv #file #column
ADD COMMENT
Topic
Name
9+7 =