how to fill null values in a row based on the value in another column.
A B
0 5
1 NAN
1 6
0 NAN
for the null value in B if coressponding value in A is 0 then fill with the previous value.
A B
0 5
1 NAN
1 6
0 6
```
it want it to be like this