ENH: Add numeric_only to DataFrame.cum* methods · Issue #53072 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@phofl

Description

@phofl

Feature Type

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