I have a dataframe, full of hourly data, which has missing values. The dates act as the index and are laid out as yyyy-mm-dd hh:mm.
For the context I'm working in, it isn't appropriate to simply mirror the value above. Hence ffill
won't suffice. It would be better to mirror the values for the same hour from the day before.
So if 10:00 the day before has a value of "red", the missing data is filed with the value of "red".
If anybody can help me do this, they will make my day! :)
Date Time | Yeovilton
01/01/2012 00:00 | 12.4
01/01/2012 01:00 | 11.7
...
...
02/01/2012 00:00 | 5.9
01/01/2012 01:00 | NaN