#plotting the independent ordinal variables plt.figure(1) plt.subplots(131) train[\'Dependents\'].value_counts(normalize=True).plot.bar(figsize=(24,6), title=\'Depen