I am trying to create a timeline plot but am running into some issues. My data frame looks like this:
Event Date
b 1/3/2016
b 1/4/2016
a 1/4/2016
a 1/5/2016
There are more data points but this illustrates the point. My end goal is to have a data set that I can plot with 'Event a: 1/4/2016 - 1/5/2016', etc for all events.
However when I sort the data and try to categorize it, I end up with the data like this:
Event Date
b 1/3/2016
a 1/4/2016
b 1/4/2016
a 1/5/2016
So my final plotted dataset comes out stating 'event b: 1/3/2016', 'event a: 1/4/2016', 'event b: 1/4/2016', 'event a: 1/5/2016' instead of just 2 date ranges for the two events.
Does this make sense? Basically I have a large dataset with events at certain dates, I want to make run through the data to categorize it and make a timeline saying event a,b,c, etc occurred from range x-y, a-b, etc. and plot that.
Thank you for any and all help!