Graphing number of rows over time in pandas

Viewed 3290

I have a data frame with rows of datetime elements (or perhaps they're text, I'm reading them in from a csv)Ex:. 2017-07-14 09:10:40 2017-07-14 09:10:24 2017-07-14 09:10:22 2017-07-14 09:09:49 2017-07-14 09:09:48 2017-07-14 09:09:48 2017-07-14 09:09:26 2017-07-14 09:09:04 2017-07-14 09:08:35 2017-07-14 09:08:17 2017-07-14 09:08:07

I'd like to graph how many rows there are per date, or per hour. (dates on x axis and number of rows on y axis).

How can I do that? I recognize that I'll need to do a count, but I don't know what to do with the number once I have it for each date. I guess I'll need to map it to a new df or something?

Thanks!

1 Answers
Related