Function to remove outliers in multiple columns IQR rule pandas
I am working on this database of heart_diseases and I need to remove outliers (in numeric columns) based on the condition of putting a threshold S equal to 1.5 times the interquartile range.
If a value is less than Q1 -S or greater than Q3+S, then it is an outlier.