Skip to content

ENH: cumcount() for DataFrames and Series #12648

Open
@johne13

Description

@johne13

Unless I am missing something obvious, we can do this:
df.groupby('x').cumcount()
but not:
df.cumcount()

Obviously, there are workarounds, but seems like we should be able to do on a dataframe/series if we can do on a groupby object?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions