Skip to content

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