I have a list of this sort :
numbers = [12, None, None, 17, 20, None, 28]
What's the best path to consider in order to fill in None values with appropriate numbers so that the None values get numbers in between the defined values.
Example :
numbers = [12, **14**, **16**, 17, 20, **24**, 28]
Interpolating on the fly to create a linear interpolation:
Demo: