I have Pandas DataFrame and I'm trying to figure out how to insert values between the datetime values in my DF. Ideally I'd have a row for each hour, with the 'price' just being filled in by the previous price.
If I have a table like this:
day_hour price
---------------------------------
2020-01-01 05:00:00 12.083333
2020-01-01 09:00:00 11.047170
2020-01-01 10:00:00 11.678125
2020-01-01 11:00:00 11.920000
2020-01-01 12:00:00 12.012500
How would I turn it into this?:
day_hour price
---------------------------------
2020-01-01 05:00:00 12.083333
2020-01-01 06:00:00 12.083333
2020-01-01 07:00:00 12.083333
2020-01-01 08:00:00 12.083333
2020-01-01 09:00:00 11.047170
2020-01-01 10:00:00 11.678125
2020-01-01 11:00:00 11.920000
2020-01-01 12:00:00 12.012500