Skip to content
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

Bug in groupby when as_index=False #819

Closed
adamklein opened this issue Feb 23, 2012 · 1 comment
Closed

Bug in groupby when as_index=False #819

adamklein opened this issue Feb 23, 2012 · 1 comment
Assignees
Labels
Milestone

Comments

@adamklein
Copy link
Contributor

Recreation:

In [2]: paste
In [357]: df = DataFrame({'A' : ['foo', 'bar', 'foo', 'bar',
   .....:                        'foo', 'bar', 'foo', 'foo'],
   .....:                 'B' : ['one', 'one', 'two', 'three',
   .....:                        'two', 'two', 'one', 'three'],
   .....:                 'C' : randn(8), 'D' : randn(8)})
## -- End pasted text --

In [3]: grouped = df.groupby(['A', 'B'], as_index=False)

In [4]: x = grouped['C'].agg({ 'Q' : np.sum})
@adamklein
Copy link
Contributor Author

I see you fixed, tyvm

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

No branches or pull requests

1 participant