Created
April 5, 2021 11:53
-
-
Save adhadse/5bfd06ec5ff8cfc834b8b1a7d54463cd to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def determine_outlier_thresholds_std(dataframe, col_name): | |
upper_boundary = dataframe[col_name].mean() + 3 * dataframe[col_name].std() | |
lower_boundary = dataframe[col_name].mean() - 3 * dataframe[col_name].std() | |
return lower_boundary, upper_boundary |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment