1#checking for outliers
2
3numerical_features=[feature for feature in df.columns if df[feature].dtypes!='object']
4for feature in numerical_features:
5 if feature=='class(target)':
6 pass
7 else:
8
9 df[feature].plot.box()
10 plt.xlabel(feature)
11 plt.show()