I have a simple data frame (data from the Tropical Rainfall Measuring Mission, TRMM, in case that helps provide context), one column for the datetime and one for precipitation measurement, that looks like this:
ppt
date
1998-01-01 03:00:00 0.00
1998-01-01 06:00:00 0.00
1998-01-01 09:00:00 0.03
1998-01-01 12:00:00 0.20
The readings are every three hours and the values are 3-hour averages of rainfall per hour for the previous three hours. I would like to create a dataframe that contains rainfall measurements for every hour, so it would look like this:
ppt
date
1998-01-01 01:00:00 0.00
1998-01-01 02:00:00 0.00
1998-01-01 03:00:00 0.00
1998-01-01 04:00:00 0.00
1998-01-01 05:00:00 0.00
1998-01-01 06:00:00 0.00
1998-01-01 07:00:00 0.03
1998-01-01 08:00:00 0.03
1998-01-01 09:00:00 0.03
1998-01-01 10:00:00 0.20
1998-01-01 11:00:00 0.20
1998-01-01 12:00:00 0.20
Any ideas of how I might go about doing this?