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:
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?
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
from Recent Questions - Stack Overflow https://ift.tt/3mflc33
https://ift.tt/3nj0oZS
Comments
Post a Comment