Skip to content

DOC: Grouper.ngroups vs Grouper.group_info[2] #49980

Closed
@jbrockmendel

Description

@jbrockmendel

In the groupby code we sometimes get do ids, _, ngroups = self.group_info and other times do ngroups = self.ngroups. In all existing test cases (as of last time I checked which was probably over a year ago), these two ways of getting ngroups match. Can we prove that this will always be the case? If so, let's make one a property based on the other. If not, let's add a test with a counter-example and a comment.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions