Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove outliers in dataset in python

You have to define the range of values in that paticular column. 

df_out = df_in.loc[(df_in[col_name] > fence_low) & (df_in[col_name] < fence_high)]

There is no direct code for it.
Source by app.dataquest.io #
 
PREVIOUS NEXT
Tagged: #remove #outliers #dataset #python
ADD COMMENT
Topic
Name
6+9 =