Skip to content

ENH: Add numeric_only to DataFrame.cum* methods #53072

Closed
@phofl

Description

@phofl

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

The groupby methods all support numeric_only while regular transformations don't. Not sure if there is a reason for this.

cc @rhshadrach thoughts here?

More context: If you do an axis=1 transformation on groupby it dispatches to DataFrame.cum* and hence raises if numeric_only is given.

Feature Description

Add the keyword.

Alternative Solutions

Filter the DataFrame on your own, but this is mostly compatibility to groupby methods.

Additional Context

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions