title: How can i clean my dataset from outliers as it includes numerical and categorical variables in Python?
body: <p>I would like to clean my dataset from outliers but just in three specific columns, as the other 10 contain categorical variables. So how can I get my data cleaned by only referring to these specific columns?</p>
  
  <p>I'd like to use iqr range method. That's the code i run so far:</p>
  
  <pre><code>import numpy as np
  def outliers(x): 
         return np.abs(x- x.median()) &gt; 1.5*(x.quantile(.75)-x.quantile(0.25))
  ath2.Age[outliers(ath2.Age)]
  ath2.Height[outliers(ath2.Height)]
  ath2.Weight[outliers(ath2.Weight)]
  </code></pre>
  
  <p>After checking the number of outliers in the columns I'm interested in, I don't know how to proceed further.</p>