Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
GroupBy.transform bug/API change #8046
Comments
wesm
added the
Bug
label
Aug 17, 2014
|
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. |
jreback
added the
Groupby
label
Aug 17, 2014
jreback
added this to the
0.15.0
milestone
Aug 17, 2014
jreback
referenced
this issue
Aug 17, 2014
Merged
BUG: Bug in DataFrameGroupby.transform when transforming with a passed non-sorted key (GH8046) #8049
jreback
closed this
in #8049
Aug 18, 2014
jreback
referenced
this issue
Oct 1, 2014
Merged
BUG: Groupby.transform related to BinGrouper and GH8046 (GH8430) #8434
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wesm commentedAug 17, 2014
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
transformhas undergone some work in recent times; any ideas? I need to look at the book text and see if I can triage by replacingtransformwithapply. At this pointtransformfeels a little bit anachronistic.