I have a pandas dataframe with some missing timestamps that are spaced regularly apart at minute intervals as below
df
time value
2020-03-04 17:00:00 -0.923
2020-03-04 17:01:00 -0.829
....
The issue is that, in some places the time column is missing (the value column has no missing values).
2020-03-04 22:08:00 0.023
NaN 0.039
NaN 0.104
2020 03-04 22:11:00 0.192
How could I forward fill the NaN's in the time column so that they would increment the time correctly at each row? The desired output using the example above would look like
2020-03-04 22:08:00 0.023
2020-03-04 22:09:00 0.039
2020-03-04 22:10:00 0.104
2020 03-04 22:11:00 0.192