I have a Panda Dataframe prices with the following structure:
prices
Out[28]:
FCR-N FCR-D
Period
2016-01-01 00:00:00 28.949 5.285
2016-01-01 01:00:00 28.820 5.314
2016-01-01 02:00:00 28.734 5.330
2016-01-01 03:00:00 28.822 5.292
2016-01-01 04:00:00 28.822 5.251
... ...
2020-04-30 19:00:00 8.767 11.587
2020-04-30 20:00:00 8.441 6.528
2020-04-30 21:00:00 7.857 8.275
2020-04-30 22:00:00 7.873 7.896
2020-04-30 23:00:00 7.893 8.046
[37967 rows x 2 columns]
I would like to get a plot similar to the one below with hours on y-axis from the Period column, dates on the x-axis from the Period column, and the corresponding color on the graph set by the value in the FCR-N column.
I haven't figured out how to obtain such a plot. What would be the best way to do it?
