🌈 搜索
📅  最后修改于: 2022-03-11 14:46:58.348000             🧑  作者: Mango
dfx['colAsum'] = dfx.apply(lambda x: df.loc[(df.date >= x.StartDate) & (df.date <= x.EndDate), 'colA'].sum(), axis=1)