i'm trying to fill the empty y field in my dataset[from 12 to 16]
, here is the original data vizualisation
I have NaN values at the end, here is my code
df=df.interpolate(method='polynomial', order=2, limit_direction ='both')
I have tried many methods (‘slinear’, ‘quadratic’, ‘cubic’, ‘spline’, ‘barycentric'), all of them gave the following result
As you see, from 12 to 14 the result is not the sinusoidal extension of my data, it just clone the first elements.