Skip to content

Commit

Permalink
upload joinfile_pandas.py
Browse files Browse the repository at this point in the history
upload joinfile_pandas.py
  • Loading branch information
flystar authored Sep 7, 2018
1 parent 95e8203 commit 3e2b082
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions joinfile_pandas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import pandas as pd
df1 = pd.read_excel('/ldfssz1/MS_OP/USER/xutengfei1/spider_rna/SpiderA-VS-SpiderB.DEGseq_Method.GeneDiffExpFilter.xls')
df2 = pd.read_excel('/ldfssz1/MS_OP/USER/xutengfei1/spider_rna/annotation.xls')
outfile = pd.merge(df1, df2, how='left', left_on='GeneID',right_on='Unigene')
outfile.to_excel('outfile.xls', index=False)

0 comments on commit 3e2b082

Please sign in to comment.