max deviation in pandas code example
Example: max deviation in pandas
def max_deviation(s):
std_score = (s - s.mean()) / s.std()
return std_score.abs().max()
def max_deviation(s):
std_score = (s - s.mean()) / s.std()
return std_score.abs().max()