Detect outliers with boxplots and histograms
plt.figure(figsize=(15, 30)) i = 0 for col in feature_vars: i += 1 plt.subplot(9, 4, i) plt.boxplot(df[col]) plt.title('{}'.format(col), fontsize=9) plt.hist(df[col]) plt.suptitle('Detect Outliers', fontsize=16, verticalalignment='top', horizontalalignment='center', fontweight='bold') plt.savefig('charts/Detect_Outlier_Plots.png', dpi=None, facecolor='w', edgecolor='g', orientation='portrait', format=None, transparent=False, bbox_inches=None, pad_inches=0.0, metadata=None) plt.show()