how to plot one categorical data and one numerical data in matplotlib code example Example: plot categorical data matplotlib df['colour'].value_counts().plot(kind='bar')