📜  python group by - 任何代码示例

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

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