Skip to content

Broken nunique on Series group by #11077

Closed
@cpcloud

Description

@cpcloud

The following code works in 0.16.2 and not in latest master:

data = pd.DataFrame(
    [[100, 1, 'Alice'],
     [200, 2, 'Bob'],
     [300, 3, 'Charlie'],
     [-400, 4, 'Dan'],
     [500, 5, 'Edith']],
    columns=['amount', 'id', 'name']
)

expected = data.groupby(['id', 'amount'])['name'].nunique()

Going to bisect this today unless someone beats me to it.

Metadata

Metadata

Assignees

Labels

BlockerBlocking issue or pull request for an upcoming releaseBug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions