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
You time interpolator does not limit the nans to inside the available data range. At present, values corresponding to below the available time range are assigned NaNs, but above the time range you'll get forward-filled values.
A fix is given below:
deftime_interpolator(timekwarg):
"""{docstring}"""# Note: df will be passed into this function's local scope# t will be provisioned as a keyword argumentdf_=df.reindex(df.index.union(t))
df_interpolated=df_.interpolate(method='time', limit_area='inside')
result=df_interpolated.reindex(t)
returnresult
The text was updated successfully, but these errors were encountered:
You time interpolator does not limit the nans to inside the available data range. At present, values corresponding to below the available time range are assigned NaNs, but above the time range you'll get forward-filled values.
A fix is given below:
The text was updated successfully, but these errors were encountered: