Given a TimeArray variable with unequally spaced observations, I would like to insert the "missing" timestamps between timestamps for which there are no observations. Since observations are not available at these new timestamps, I want to replace them with the most recent available data point (backfill). How can I accomplish this in Julia? Thank you for any pointers!
My TimeSeries.TimeArray
variable looks like this:
price
2011-08-14T14:14:00 | 10.4
2011-08-14T14:15:00 | 10.4
2011-08-14T14:21:00 | 10.5
Now what I want to generate is this
price
2011-08-14T14:14:00 | 10.4
2011-08-14T14:15:00 | 10.4
2011-08-14T14:16:00 | 10.4 (back-filled)
2011-08-14T14:17:00 | 10.4 (back-filled)
2011-08-14T14:18:00 | 10.4 (back-filled)
2011-08-14T14:19:00 | 10.4 (back-filled)
2011-08-14T14:20:00 | 10.4 (back-filled)
2011-08-14T14:21:00 | 10.5