🌈 搜索
📅  最后修改于: 2022-03-11 14:59:51.051000             🧑  作者: Mango
df.groupby('group').assign(mean_var1 = lambda x: np.mean(x.var1)