matplotlib plot categorical data code example
Example 1: plot categorical data matplotlib
df['colour'].value_counts().plot(kind='bar')
Example 2: simple graph in matplotlib categorical variables
tips = sns.load_dataset("tips")
sns.catplot(x="day", y="total_bill", data=tips)