-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
API: Disallow dict as agg parameter during groupby #23393
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
Conversation
| Hello @gfyoung! Thanks for submitting the PR.
|
Grouped, rolled, and resample Series / DataFrames will now disallow dicts / nested dicts respectively as parameters to aggregation (was deprecated before). xref pandas-devgh-15931.
5e44744 to 6caa3ea Compare Codecov Report
@@ Coverage Diff @@ ## master #23393 +/- ## ========================================== - Coverage 92.16% 92.13% -0.04% ========================================== Files 166 166 Lines 51224 51224 ========================================== - Hits 47212 47194 -18 - Misses 4012 4030 +18
Continue to review full report at Codecov.
|
| @jreback : Rebased and green. PTAL. |
| @jorisvandenbossche @TomAugspurger any objections. even though there is not a great soln to replace this, it is time. |
| I think this shouldn’t be enforced until we have a replacement in place. Rather we should update the warning to show the new style once that’s implemented, and give people a release to update. |
| Yes, IMO we should first work on the ideas discussed in #18366. I am going to try to find some time for that the coming month, but other people looking at it is certainly welcome. |
| AFAIK, the current plan is to deprecate everything in 0.24, not remove anything in 0.25, and have 1.0 be backwards-compat with 0.25 aside from the removals of deprecated features. The idea is for people to upgrade 0.25, fix warnings, and then get on 1.0 relatively easily. …On Sun, Oct 28, 2018 at 2:08 PM gfyoung ***@***.***> wrote: Ah, thanks for reminding me about #18366 <#18366>, in which case, I do agree that this error should wait... Where does 0.25 fit into deprecation removals though? (I see only targets for 1.0) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#23393 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ABQHIkrqOAzXvD6b9-poqamTFFXHLAOIks5upgC8gaJpZM4X9vAu> . |
| Gotcha. In that case, I'll move this deprecation removal to |
Grouped, rolled, and resample
Series/DataFrameswill now disallow dicts / nested dicts respectivelyas parameters to aggregation (was deprecated before).
xref #15931.