0

I am trying to make a bar graph or a stacked bar graph with the count of each city.

The data set

The x-axis should be the the label of cluster and y-axis should be the count.

Something like these

Chart example

enter image description here

Where the colors are different cities.

I have tried to use the hist funtions from pandas but cannot separate the cities. enter image description here

  • This is not a histogram, but a bar chart. – BigBen Dec 27 '21 at 16:12
  • 1
    Please do not provide data as images. I suggest reading [How to make good reproducible pandas examples](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples) and editing your question. If that is a pandas dataframe. We don't know. – Mr. T Dec 27 '21 at 18:21
  • 1
    With seaborn? `sns.countplot(x=df['cluster'])`? – JohanC Dec 27 '21 at 19:05