I have a dataframe that looks like this:
timestamp Value Color
--------------------------------------------------
0 2018-03-04 07:11:08 34 Red
1 2018-03-04 07:11:09 34 Red
2 2018-03-04 07:11:10 35 Red
3 2018-03-04 07:11:12 36 Red
4 2018-03-04 07:11:14 24 Red
5 2018-03-04 07:11:15 34 Red
...
55 2018-03-04 07:12:17 34 Blue
56 2018-03-04 07:12:18 35 Blue
57 2018-03-04 07:12:19 36 Blue
58 2018-03-04 07:12:20 37 Blue
59 2018-03-04 07:12:21 35 Blue
60 2018-03-04 07:12:22 32 Blue
And so over the course of 60 seconds, for each time stamp, there is a value recorded, but the values are split between two colors, Red and Blue. And so, within this dataframe we see time series curves for two different curves occurring at different times, one after the other, and not overlapping. What I want to do is plot them. However, I want to ignore the timestamps, so that it is assumed they start at the same time, and so just treating each color as an array of ordered values, ignoring time skips and assuming equally spaced time intervals. I simply want to plot the Red curve and the Blue curve on the same chart. How can this be done in python? I am trying simply
plt.plot(Blue, Red)
Though I am not sure how to account for the x-axis, which I simply want to be seconds.
