Skip to content

API: Consistently support numeric_only in groupby ops #56946

Open
@rhshadrach

Description

@rhshadrach

Inspecting the various groupby ops, I think the following are cases where we should have numeric_only.

The following methods make sense to have numeric_only, but won't fail on any input (or hashable input for nunique and value_counts), and so I think it's okay if they don't. But is still nice to have.

  • all
  • any
  • bfill
  • count
  • ffill
  • nunique
  • value_counts

The following methods should not get a numeric_only argument. They fall into a few typical camps: filters, plotting, or they do not depend on the columns (e.g. cumcount and size)

  • boxplot
  • cumcount
  • describe # Handled by include="all"
  • filter
  • head
  • hist
  • nth
  • pipe
  • plot
  • shift
  • size
  • tail
  • take

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