📜  按列表分组python代码示例

📅  最后修改于: 2022-03-11 14:47:09.656000             🧑  作者: Mango

代码示例3
df.groupby('group').assign(mean_var1 = lambda x: np.mean(x.var1)