Closed kumarh22 closed 5 years ago
That is expected behaviour, moving_window
works on 2D data. Its use case would be if you had multiple iterations of the y
column and wanted to interpolate one instance of it with all the other (complete ones). 1D data isn't a use case I had originally considered, I'll open new issues for that referencing this.
Data looks as below
tsNH4_na.head()
Including
ds
is giving errorBadInputError: Data is not float.
So just tried with single variabley
np.isnan(impy.imputation.ts.moving_window(np.array(tsNH4_na[["y"]]),func = np.mean,errors='raise',nindex=0,wsize=10)).sum()
impy.fast_knn(tsNH4_na[['y']],k = 2) np.isnan(imput).sum()
Unimputed data also have 833 missing points.