Skip to content

BUG: ensure we use group sizes, not group counts, in transform (GH9697) #9699

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

Merged
merged 1 commit into from
Mar 23, 2015

Conversation

dsm054
Copy link
Contributor

@dsm054 dsm054 commented Mar 22, 2015

Switch count() to size(), so that when we build the expanded values we're using the size of the groups and not simply the number of non-null values they have. Fixes #9697.

@shoyer shoyer added this to the 0.16.1 milestone Mar 22, 2015
@shoyer
Copy link
Member

shoyer commented Mar 22, 2015

This looks great to me! Can you add a bug fix note to 0.16.1.txt?

@dsm054 dsm054 force-pushed the fix-transform-length-mismatch branch from c3d565a to 8bae0d4 Compare March 22, 2015 18:41
@jreback jreback merged commit 713fe11 into pandas-dev:master Mar 23, 2015
@jreback
Copy link
Contributor

jreback commented Mar 23, 2015

@dsm054 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: groupby.transform length mismatch under certain specifications
3 participants