-
-
Save quantra-go-algo/06abdf4f7c4bc20d6e20e418cfb77e85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#For identifying the outliers with the standard deviation method | |
outliers = [x for x in data if x < lower or x > upper] | |
print('Identified outliers: %d' % len(outliers)) | |
#Remove outliers | |
outliers_removed = [x for x in data if x >= lower and x <= upper] | |
print('Non-outlier observations: %d' % len(outliers_removed)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment