Skip to content

Instantly share code, notes, and snippets.

@FelixChop
Created February 25, 2020 13:10
Show Gist options
  • Save FelixChop/cbee3ccb3d041347cfa43bf72e0883bb to your computer and use it in GitHub Desktop.
Save FelixChop/cbee3ccb3d041347cfa43bf72e0883bb to your computer and use it in GitHub Desktop.
# The following code removes the data where 'column_with_outliers' is more than 10 times its average
data = data.loc[data['column_with_outliers'] < data['column_with_outliers'].mean()*10]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment