I have a pandas series profile for a year with 1 hour interval. I interpolated and resampled the series for '1min' interval. I used method='spline' with order=2 for interpolation. Suppose, I have X as pandas series and I got Y as following: Y = X.resample('1min').interpolate(method = 'spline', order = 2)
Is it possible to get the coefficients for that are used for spline method to get Y?
I can not find any way from the pandas document. I tried to use scipy by converting X values into an array. But I can not find how to interpolate 60 points between to values to receive y and get the coefficients from y.
pandas passes your series to scipy.interpolate.UnivariateSpline. You can get the coefficients using the get_coeffs() method.