Calculation of outlier score in series_outlier method I want to implement the series_outlier method in Python & used the following code