0
#plotting the independent ordinal variables
plt.figure(1)
plt.subplots(131)
train['Dependents'].value_counts(normalize=True).plot.bar(figsize=(24,6), title='Dependents')
plt.subplots(132)
train['Education'].value_counts(normalize=True).plot.bar(title='Education')
plt.subplots(133)
train['Property_Area'].value_counts(normalize=True).plot.bar(title='Property_Area')
plt.show()

here's the image

#[1]: https://i.stack.imgur.com/V9YgL.png

Mayor
  • 25
  • 1
  • 4

0 Answers0