-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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: Deprecate as_index in groupby #35860
Comments
cc @jbrockmendel, @WillAyd, @jreback Any thoughts here? |
Do you have a qualitative estimate of how much simplification we'd get? I'm definitely open to the idea in principal. |
in principal this makes groupby simpler but then again it makes a slightly more verbose syntax and to be honest i wish we wouldn't actually set the index and just make it a column so either way this is a rather big change so -0 on deprecating |
@jbrockmendel Not sure what kind of qualitative estimate one can give here; here are some that I think are on the more quantitative side. I count 13 instances of branching created within @jreback If we were to leave the groups as columns, I think that would necessitate the index being a |
I agree that But on the other hand, I think that |
Thanks @jorisvandenbossche. Working on some of the Going to close this issue in a week if there is no futher discussion. |
Reopening as I think this is worthwhile to do. |
+1. The groupby tests are made really cumbersome by the combination of options. |
Should we deprecate using
as_index
in groupby? As the docs say, usingas_index=False
should only impact reductions. Here, my expectation is that a line such asshould always be equivalent to
It seems quite easy for the user to do so if they desire, and this would simplify the groupby internals.
The text was updated successfully, but these errors were encountered: