I have a temperature file with many years of temperature records in the format below:
2012-04-12,16:13:09,20.6
2012-04-12,17:13:09,20.9
2012-04-12,18:13:09,20.6
2007-05-12,19:13:09,5.4
2007-05-12,20:13:09,20.6
2007-05-12,20:13:09,20.6
2005-08-11,11:13:09,20.6
2005-08-11,11:13:09,17.5
2005-08-13,07:13:09,20.6
2006-04-13,01:13:09,20.6
Every year has different numbers of time of records, so the pandas datetimeindices
are all different.
I want to plot the different year's data in the same figure for comparison:
- The X-axis is
datetimeindices
from Jan to Dec - The Y-axis is the temperature
How should I go about doing this?