I have a dataframe with 3 columns of which the first column is a datetime.
It looks like this
Datetime Level1 Level2
2016-02-24 01:00 12 15
2016-02-24 02:00 14 13
2016-02-24 03:00 8 12
Now I would like to add 15 min interval values between the hourly values. However, Level1 and Level2 gets the same values as its previous hour. It should look like this:
Datetime Level1 Level2
2016-02-24 01:00 12 15
2016-02-24 01:15 12 15
2016-02-24 01:30 12 15
2016-02-24 01:45 12 15
2016-02-24 02:00 14 13
2016-02-24 02:15 14 13
2016-02-24 02:30 14 13
2016-02-24 02:45 14 13
2016-02-24 03:00 8 12
2016-02-24 03:15 8 12
2016-02-24 03:30 8 12
2016-02-24 03:45 8 12
I can't think of a way how to do this properly.