Skip to content

Instantly share code, notes, and snippets.

@HeenaR17
Created April 3, 2021 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HeenaR17/82b203738ff95e65b366260d4907d682 to your computer and use it in GitHub Desktop.
Save HeenaR17/82b203738ff95e65b366260d4907d682 to your computer and use it in GitHub Desktop.
#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