-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Shortcut functions in transform are not grouped #19354
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
Thanks for the report. It's not exactly that it ignores the grouping, but instead is falling through a fast-path, that assumes Line 4132 in 2952fbd
I think a quick-fix would be to add Line 345 in 2952fbd
Also xref to #15779 |
@DiegoAlbertoTorres welcome for a fix here! |
Looks like these match on master now. Could use a test
|
Problem description
It seems like the functions provided through shorthand strings, such as 'rank', do not obey the groupings of data. For example, one would expect Out[3] and Out[4] to be the same in the code above. Instead, it seems like using
.transform('rank')
doesn't actually obey the grouping and just ranks independently. I've reproduced this with larger dataframes as well.The text was updated successfully, but these errors were encountered: