pandas.Series.interpolate

Series.interpolate(method='linear')

Interpolate missing values (after the first valid value)

method : {‘linear’, ‘time’, ‘values’}
Interpolation method. ‘time’ interpolation works on daily and higher resolution data to interpolate given length of interval ‘values’ using the actual index numeric values

interpolated : Series