-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: resample().interpolate() #12925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi!
It seams that Should I propose my PR with a test which fails because of this bug? or should I remove one of my test for the moment? |
#12928 fixed that. make sure you are up to date. |
Are you sure it really works??
So the latest version. (10 commits above #12928) Here an example with timedeltas:
And here the example with datetimes:
The behaviour is still not the same between .mean() and .asfreq() (and some other operations .bfill(), etc.) for timedeltas. |
ok, so soln is not complete. seeing if I can fix. |
Thanks a lot. |
From #12449 (comment)
When downsampling on a Resampler object, you now have different
fillna
methods to fill the NaNs (orasfreq
for a plain reindex like operation without NaN filling). I can possibly make sense to also haveinterpolate
available to fill the missing values directly (instead of first callingmean
/asfreq
)Should
df.resample('1T').interpolate('linear')
give the same result?The text was updated successfully, but these errors were encountered: