<human>:  Plotting categorical data with pandas and matplotlib
<bot>: Here is some code to plot categorical data in series `df` with kind `bar` using pandas and matplotlib

df.groupby('colour').size().plot(kind='bar')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.