Skip to content

BUG: GH12902 fixed coercion of complex values to float when using gro… #12917

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

Closed
wants to merge 2 commits into from
Closed

Conversation

adneu
Copy link
Contributor

@adneu adneu commented Apr 18, 2016

def test_groupby_complex(self):
# GH 12902
a = Series(data=np.arange(4) * (1 + 2j), index=[0, 0, 1, 1])
result = a.groupby(level=0).sum()
Copy link
Contributor

Choose a reason for hiding this comment

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

for completeness, can you add s.sum(level=0) as well as a test

@jreback jreback added Bug Groupby Complex Complex Numbers labels Apr 18, 2016
@jreback jreback added this to the 0.18.1 milestone Apr 18, 2016
@jreback jreback closed this in a6d7698 Apr 18, 2016
@jreback
Copy link
Contributor

jreback commented Apr 18, 2016

thanks!

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

Successfully merging this pull request may close these issues.

BUG: Complex types are coerced to float when summing along level of MultiIndex
2 participants