📜  将 tsv 导入为数据框 python 代码示例

📅  最后修改于: 2022-03-11 14:45:10.988000             🧑  作者: Mango

代码示例1
# 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="\t")