Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import tsv as dataframe python

# import tsv file into pandas

import pandas as pd

# Use an argument to pass in the name of the tsv file
qa_file = sys.argv[1]

# Read in the tsv file with pandas. The separator is a tab
qa=pd.read_csv(qa_file,sep="	")

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #tsv #dataframe #python
ADD COMMENT
Topic
Name
4+6 =