plotting categorical data with pandas and matplotlib,df.groupby('colour').size().plot(kind='bar')