Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

graph outlier detection

#checking for outliers

numerical_features=[feature for feature in df.columns if df[feature].dtypes!='object']
for feature in numerical_features:
    if feature=='class(target)':
        pass
    else:
    
        df[feature].plot.box()
        plt.xlabel(feature)
        plt.show()
Comment

PREVIOUS NEXT
Code Example
Python :: python array use numpy arange 
Python :: leetcode solutions python 
Python :: split long list into chunks of 100 
Python :: sum in python 
Python :: how to extract digits from a string in python 
Python :: if statements python 
Python :: how to access variable of one function in another function in python 
Python :: python find if part of list is in list 
Python :: program to count the number of occurrences of a elementes in a list python 
Python :: python list tutorial 
Python :: How to perform heap sort, in Python? 
Python :: create a range of numbers in python 
Python :: if it is square python 
Python :: Python How To Convert Text to Speech 
Python :: takes 2 positional arguments but 3 were given 
Python :: how to create a subset of a dataframe in python 
Python :: why is python so popular 
Python :: pandas count distinct values in column 
Python :: initialize 2d array of zeros python 
Python :: append vector to vector python 
Python :: python xgboost 
Python :: function to measure intersection over union 
Python :: Convert .tif images files to .jpeg in python 
Python :: armstrong number function 
Python :: python quiz answer stores 
Python :: how to store data in python 
Python :: turtle write function in turtle package python 
Python :: robot framework log from python 
Python :: Use the correct syntax to print the first item in the fruits tuple. 
Python :: x = 10 x += 12 y = x/4 x = x + y in python 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =