Skip to content
Advertisement

How do I plot a histogram with one of the columns along the x axis?

I have a DataFrame quantities as follows: enter image description here

JavaScript

How do I make a histogram out of it with date along x axis, total quantity for the date on y axis?

I tried

JavaScript

But the resulting histogram didn’t make any sense to me.

enter image description here

Edit. Long day. I got it all wrong. Per comments, it looks like I what I need is a bar chart, or even a regular line plot, with date along the x axis, and the total sum of quantities for the given day along y. I need to find a way to group by day. Help?

Advertisement

Answer

Group by day:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement