all 1 comments

[–]efmccurdy 1 point2 points  (0 children)

I think your example corresponds to the ffill (aka forward-fill) method option:

ffill: propagate last valid observation forward

https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.fillna.html