I am working in Python. I have a vector of values ranging let say from 1 to 10. I want to add missing data (zeros), such the value is linearly interpolated:
value = [2., 1., 0., 0., 0., 1., 1., 0., 0., 0.0001]
I would like to get the missing values (zeros) through linear interpolation:
value = [2., 1., 1., 1., 1., 1., 1., 0.666, 0.333, 0.0001]