You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add some form of interpolating NaNs like that proposed in #348
definterpolate_nans(x, y):
""" Interpolates nan values in y. Sorts if necessary. """x_sort_args=np.argsort(x)
x=x[x_sort_args]
y=y[x_sort_args]
nans=np.isnan(y)
y[nans]=np.interp(x[nans], x[~nans], y[~nans])
returny[x_sort_args]
The text was updated successfully, but these errors were encountered:
Add some form of interpolating NaNs like that proposed in #348
The text was updated successfully, but these errors were encountered: