I have a dataframe in pandas and I want to make a condition with if the cell value in the data fram exist go to the next row or if it is not exist copy the cell value before in the corrent cell row. like this, The column index is 2:
564
254
567
242
Here is Blank
211
121
the output is:
564
254
567
242
242
211
121