def _merge(dts):
df = pd.concat(dts)<EOL>ma = df.pivot(index='<STR_LIT>', columns='<STR_LIT>', values='<STR_LIT>')<EOL>ma_mirna = ma<EOL>ma = ma.fillna(<NUM_LIT:0>)<EOL>ma_mirna['<STR_LIT>'] = [m.split("<STR_LIT::>")[<NUM_LIT:0>] for m in ma.index.values]<EOL>ma_mirna = ma_mirna.groupby(['<STR_LIT>']).sum()<EOL>ma_mirna = ma_mirna.fillna(<NUM_LIT:0>)<EOL>return ma, ma_mirna<EOL>
merge multiple samples in one matrix