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

std_score = (s - s.mean()) / s.std()
return std_score.abs().max()

From

Cover of Pandas Cookbook

Note

组内 abs(z-score) 的最大值