Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate iqr in python dataset example

def outlier_treatment(datacolumn): sorted(datacolumn) Q1,Q3 = np.percentile(datacolumn , [25,75]) IQR = Q3 — Q1 lower_range = Q1 — (1.5 * IQR) upper_range = Q3 + (1.5 * IQR) return lower_range,upper_range
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #calculate #iqr #python #dataset
ADD COMMENT
Topic
Name
2+8 =