-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Groupby filter doesn't work with repeated index #4620
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
Comments
cc @danielballan while you're looking at the related issue :) |
There is a problem with transform also. There are four cases to consider: filtering and transforming both DataFrame- and SeriesGroupBy. Transforming a DataFrameGroupBy works.
But the other three cases do not.
|
Can anyone explain why this is not a valid use of
I would expect the output |
You need to know if they are unique or not,
|
Ah, thanks. |
For reference, get_indexer_non_unique was not the key here. See commit notes on #5375 . |
BUG/TST: transform and filter on non-unique index, closes #4620
Example:
cc #3680
(I had thought there was also a similar behaviour with transform, but that seems ok.)
The text was updated successfully, but these errors were encountered: