Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas get outliers

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

from scipy import stats
df[(np.abs(stats.zscore(df)) < 3).all(axis=1)]
Comment

PREVIOUS NEXT
Code Example
Python :: get multiple inputs in python using map 
Python :: how to get median mode average of a python list 
Python :: numpy method to make polynomial model 
Python :: df empty python 
Python :: planet 
Python :: how to use dictionaries in python 
Python :: this figure includes axes that are not compatible with tight_layout, so results might be incorrect 
Python :: how to change data type from int to float in dataframe 
Python :: pandas head sort by colun name 
Python :: Python - Change List Items 
Python :: how to log errors while debug is false in django 
Python :: start a django project 
Python :: how to download a project from pythonanywhere 
Python :: convert xls to xlsx python 
Python :: type de variable python 
Python :: python if 
Python :: enumerate from 1 python 
Python :: double in python 
Python :: python file to array 
Python :: python beginner projects 
Python :: install python in dockerfile 
Python :: pyflakes invalid syntax 
Python :: python print f 
Python :: numpy mean 
Python :: sns how to change color if negative or positive 
Python :: markers seaborn 
Python :: python exec script 
Python :: pandas today date 
Python :: dot operator in python 
Python :: iterating through a list in python 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =