I have a problem where i use pandas.core.series.Series.interpolate with cubic method and it's fill everything except the first and the last index
Here is my code :
train = data.iloc[:, column_no-1].dropna()
train = outlier(train, lower=lo, upper=hi)
train = train.interpolate(method='cubic')
I tried to use scipy.interpolate but it must input both x and y so what is x and y and will it's work for my case.
Any recommendation of how to do it.
Thank you for your consideration.