目录: 聚合apply lambda 匿名函数 apply分组 groupby(‘字段’).apply(函数)agg([‘sum’, ‘mean’])df.pivot_table(索引,字段,值,函数)