-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
DEPR: resample with PeriodIndex #58021
base: main
Are you sure you want to change the base?
Conversation
In line with my comments on those issues, I think it would be great if we could slow down these deprecations. There are several people who are interested in this issue - including me - and so I wonder if we could step back and see if there is now a path forward to trying to fix period resampling rather that removing it (and without just putting the burden on you to fix it). I would like to start getting in a place to help by understanding more about what @jbrockmendel was referring to by the downsampler being very broken. For example, in #53481 it is pointed out that
but nonetheless the actual resample operation works as I expect it to:
So I was thinking it would be helpful if we could start by collecting the cases where the resampler is not acting correctly, and then define what the behavior ought to be. As we do this, I can try to get up to speed with the current resampling code to help add some person-hours to fixing the problems, rather than removing the feature. |
To be a little more explicit here, I use period indexes and resampling pretty frequently, and I do not recall a case where the resampling operation produced incorrect results. As a result, I am having a hard time getting a handle on what is so broken and therefore needs to be fixed, and I think that seeing the examples of incorrect behavior will help me "dig in" to help fix the code. |
I'm totally fine on holding off on enforcing this deprecation until we get resolution in the linked discussions. LMK if you have a preference over where to continue discussion.
Easiest to point you toward xfailed tests test_resample_nat_index_series (reason="Don't know why this fails") and test_monthly_convention_span (reason="Commented out for more than 3 years. Should this work?") I suspect that the problem is in PeriodResampler._downsample where we |
This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.