Python, Machine Learning, Statistics, Data Science, Technology.
newdf.quantile(0.25) Q3 = newdf.quantile(0.75) IQR = Q3 - Q1 print(IQR) cleandf = newdf[~((newdf < (Q1 - 1.5 * IQR)) |(newdf > (Q3 + 1.5 * IQR))).any(axis=1)] cleandf.shape (813, 19) Let’s Plot The Box Plot Once Agaian To See if outliers are removed. plt.figure(figsize= (20,15)) plt.subplot(8,8,1)