This is my pandas dataframe.
Status index 2011-01-10 16:00:00 Active 2011-01-11 16:00:00 2011-01-12 16:00:00 Inactive 2011-01-13 16:00:00 2011-01-14 16:00:00 2011-01-18 16:00:00
I would like to fill the blank value of the column 'Status' using previous N row value. The result look like following.
Status index 2011-01-10 16:00:00 Active 2011-01-11 16:00:00 Active 2011-01-12 16:00:00 Inactive 2011-01-13 16:00:00 Inactive 2011-01-14 16:00:00 Inactive 2011-01-18 16:00:00 Inactive
What's the best way to do?