Déviation maximale en pandas

def max_deviation(s):
  std_score = (s - s.mean()) / s.std()
  return std_score.abs().max()
icy_milktea27