Skip to content

BUG: groupby mean fails for complex #43756

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 9 commits into from
Sep 30, 2021
Merged

Conversation

debnathshoham
Copy link
Member

@debnathshoham debnathshoham added Complex Complex Numbers Groupby labels Sep 26, 2021
@debnathshoham debnathshoham added this to the 1.4 milestone Sep 26, 2021
Copy link
Member

@mzeitlin11 mzeitlin11 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @debnathshoham!



def test_groupby_mean_complex():
# GH#43701
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can parmaetirze this test instead. also can you add the failing ones in another test, eg.. test_groupby_op_complex_error (e.g. min, max, etc, e.g the non-working ones)

@jreback jreback merged commit 97d96c4 into pandas-dev:master Sep 30, 2021
@jreback
Copy link
Contributor

jreback commented Sep 30, 2021

thanks @debnathshoham

@mzeitlin11 happy to have more consolidation of fused types

@debnathshoham debnathshoham deleted the gh43701 branch September 30, 2021 19:52
gasparitiago pushed a commit to gasparitiago/pandas that referenced this pull request Oct 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complex Complex Numbers Groupby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Can't compute group mean of complex values
4 participants