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