Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas remove outliers

df = pd.DataFrame(np.random.randn(100, 3))

from scipy import stats
df[(np.abs(stats.zscore(df)) < 3).all(axis=1)]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #remove #outliers
ADD COMMENT
Topic
Name
7+1 =