O'Reilly logo
  • QIAN Weishuo thinks this is interesting:

aggregating function

From

Cover of Pandas Cookbook

Note

n -> 1 的函数才是聚合函数
把非聚合函数硬塞进agg()里面,会报ValueError