-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
REF: Replace args/kwargs in groupby.resample with TimeGrouper arguments #54961
Comments
@rhshadrach Do you happen to know when TimeGrouper was resurrected? It was deprecated in 0.21.0: (see https://pandas.pydata.org/pandas-docs/stable/whatsnew/v0.21.0.html#deprecations and #16747). But today, in main, pandas/pandas/core/resample.py Line 144 in 7c6d26f
In the deprecation comments (#16747 (comment)), it appears that So, I'm super curious if it was never fully removed, if it was only "deprecated" in terms of being an exposed/external capability, or if it was gone and has returned. Does anyone have any insight? |
@mfenner1 - at one point in pandas there were two separate TimeGrouper classes: Lines 73 to 81 in e567949
pandas/pandas/core/resample.py Lines 1321 to 1323 in 51db82d
The deprecation was only for |
@rhshadrach That is really useful! I didn't get that little detail. Thank you! Can I follow up with another question or two? Do both Thanks, |
Offhand, I do not know. Would need to step through the code and search the tests. |
The args/kwargs to this method are currently documented as:
I think we should instead have these argument as being keyword arguments to groupby.resample and a test that ensures the arguments to TimeGrouper are a subset of the arguments to this method.
Also, it looks like some of these arguments, how, fill_method, and limit, are entirely ignored? But I haven't checked thoroughly.
cc @mroeschke
The text was updated successfully, but these errors were encountered: