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