pd.merge 多字段合并
2018-10-22 本文已影响0人
刘东青_6f21
if len(dilist)>0:
dilist_one=dilist[0]
outdf=pd.merge(outdf, dilist_one, on='equ_id',how='left')
if len(dilist)>1:
dilist = dilist[1::]
for x in dilist:
outdf=pd.merge(outdf, x, on=['equ_id','start_time'],how='left')