Created
April 3, 2021 15:28
-
-
Save HeenaR17/82b203738ff95e65b366260d4907d682 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
#sort dataset | |
sorted(df) | |
quantile1, quantile3=np.percentile(df,[25,75]) | |
IQR = quantile3-quantile1 | |
lowerbound= quantile1 - (1.5 * IQR) #lower bound | |
upperbound= quantile3 + (1.5 * IQR) #upper bound |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment