how to create a bar chart in python with multiple x-axis

I have a dataset with 3 columns: BOROUGHS, COMPLAINT_DATE, OFFENSE

NOTE: the date format is like this: 2010-01-30

I do know how to create a simple bar chart...like this:

df.plot(kind="bar")

But, I need something like this:

enter image description here

This chart is telling me the 5 boroughs, the number of complaints and the year. Plus using colors.

First, how do you do something like that? Second, does this type of chart has a name? like, multi-bar chart or something like that?

EDIT: enter image description here

the purple color should be first...in the bar... but it says that it has more crime...

EDIT: #2 Plus...look at this number base on 2010 and 2019 enter image description here



from Recent Questions - Stack Overflow https://ift.tt/3mflc33
https://ift.tt/3nj0oZS

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Hibernate Search - Elasticsearch with JSON manipulation

Spring Elasticsearch Operations