If I have a dataframe like the following
timestamp v
1 5
2 6
6 7
8 8
Is there a way in Pandas to create a dataframe that completes the missing timestamp and uses the last assigned values of v without having to iterate between each line?
timestamp v
1 5
2 6
3 6
4 6
5 6
6 7
7 7
8 8
I was able to solve it by iterating between the lines and detecting the missing values in the timestamp and adding the last value of v but it is too slow.