Mercurial > repos > jay > pdaug_uversky_plot
view PDAUG_Merge_Dataframes/PDAUG_Merge_Dataframes.py @ 3:cccf2ba1e068 draft
"planemo upload for repository https://github.com/jaidevjoshi83/pdaug commit edb37634e419f75dd66292e712de51278746d883"
author | jay |
---|---|
date | Wed, 30 Dec 2020 02:53:07 +0000 |
parents | 070fc1da6df7 |
children | f46f1d9b3899 |
line wrap: on
line source
import glob import pandas as pd import sys files = sys.argv[1] out_file = sys.argv[2] data_frame = pd.read_csv(files.split(',')[0],sep='\t') for file in files.split(',')[1:]: df1 = pd.read_csv(file,sep='\t') data_frame = pd.concat([data_frame,df1]) final_DF = data_frame.fillna(0) final_DF.to_csv(out_file,sep="\t", index=False)