-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
GroupBy.transform bug/API change #8046
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
We're not preserving the index order when we return from transform, so
Should be straightforward enough to fix. |
A reader noted that this works:
|
If I'm right about the problem, then it makes sense that using a dictionary should work, because the dictionary doesn't depend upon the order of the indices to establish the group mapping. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi folks,
A Python for Data Analysis reader noted the following issue with recent versions of pandas (as of 1 year ago):
on pandas 0.14.1:
on the other hand:
Looks like
transform
has undergone some work in recent times; any ideas? I need to look at the book text and see if I can triage by replacingtransform
withapply
. At this pointtransform
feels a little bit anachronistic.The text was updated successfully, but these errors were encountered: