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