Plotting categorical data with pandas and matplotlib November 7, 2022 by Tarik You can simply use value_counts on the series: df['colour'].value_counts().plot(kind='bar')