search

Home  >  Q&A  >  body text

The file inexplicably becomes very large after merging in python

As shown in the figure, there are two csv files annotation and unigene, which have a common column name of "target gene accession". The annotation has 17071 lines and the unigene has 16868 lines, but the merged file has as many as 2344530 lines. May I ask why this is like this? Thank you :D!

習慣沉默習慣沉默2707 days ago773

reply all(1)I'll reply

  • 天蓬老师

    天蓬老师2017-06-28 09:26:30

    你merge没加上联接字段
    用法参考:http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.merge.html

    reply
    0
  • Cancelreply