ENH: Add numeric_only to DataFrame.cum* methods (original) (raw)

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