I have a list:
[1, 3 ,5, 7, NaN, NaN, NaN, 15, NaN]
I also have growth rate, let’s say it is : 0.5 .
I want my list to be filled with last number before NaN multiplied by 0.5 + 1. It’s is basically ffil * 1.5. But I don’t understand how to turn that into python code.
Can someone help?