Skip to content

Conversation

@gfyoung
Copy link
Member

@gfyoung gfyoung commented Oct 28, 2018

Grouped, rolled, and resample Series / DataFrames will now disallow dicts / nested dicts respectively
as parameters to aggregation (was deprecated before).

xref #15931.

@gfyoung gfyoung added Groupby API Design Deprecate Functionality to remove in pandas Clean labels Oct 28, 2018
@gfyoung gfyoung added this to the 0.24.0 milestone Oct 28, 2018
@pep8speaks
Copy link

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.
@gfyoung gfyoung force-pushed the groupby-dict-renaming branch from 5e44744 to 6caa3ea Compare October 28, 2018 05:45
@codecov
Copy link

codecov bot commented Oct 28, 2018

Codecov Report

Merging #23393 into master will decrease coverage by 0.03%.
The diff coverage is 87.5%.

Impacted file tree graph

@@ 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
Flag Coverage Δ
#multiple 90.56% <87.5%> (-0.04%) ⬇️
#single 42.22% <0%> (-0.01%) ⬇️
Impacted Files Coverage Δ
pandas/core/groupby/generic.py 86.77% <100%> (-0.27%) ⬇️
pandas/core/base.py 93.8% <83.33%> (-3.81%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 62a15fa...6caa3ea. Read the comment docs.

@gfyoung
Copy link
Member Author

gfyoung commented Oct 28, 2018

@jreback : Rebased and green. PTAL.

@jreback
Copy link
Contributor

jreback commented Oct 28, 2018

@jorisvandenbossche @TomAugspurger any objections. even though there is not a great soln to replace this, it is time.

@TomAugspurger
Copy link
Contributor

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.

@jorisvandenbossche
Copy link
Member

jorisvandenbossche commented Oct 28, 2018

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.

@gfyoung
Copy link
Member Author

gfyoung commented Oct 28, 2018

Ah, thanks for reminding me about #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 in #6581)

@TomAugspurger
Copy link
Contributor

TomAugspurger commented Oct 29, 2018 via email

@gfyoung
Copy link
Member Author

gfyoung commented Oct 29, 2018

Gotcha. In that case, I'll move this deprecation removal to 1.0.

@gfyoung gfyoung closed this Oct 29, 2018
@gfyoung gfyoung modified the milestones: 0.24.0, No action Oct 29, 2018
@gfyoung gfyoung deleted the groupby-dict-renaming branch October 30, 2018 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API Design Clean Deprecate Functionality to remove in pandas Groupby

5 participants