snapedautility.detect_outliers
Module Contents
Functions
Detects outliers in a pandas series |
- snapedautility.detect_outliers.detect_outliers(s)[source]
Detects outliers in a pandas series Returns a threshold value for the lower bound and upper bound of the outliers and Plot a violin plot of the observations :param s: Pandas Series for which the outliers need to be found :type s: pandas.core.series.Series
- Returns
Boolean array with same length as the input, indices of outlier marked.
- Return type
List of integers
Examples
>>> from snapedautility.detect_outliers import detect_outliers >>> s = pd.Series([1,1,2,3,4,5,6,9,10,13,40]) >>> detect_outliers(s) [-8.0 , 20.0]