max deviation in pandas

Solutions on MaxInterview for max deviation in pandas by the best coders in the world

showing results for - "max deviation in pandas"
Jacobo
12 Jul 2017
1def max_deviation(s):
2  std_score = (s - s.mean()) / s.std()
3  return std_score.abs().max()