Skip to content

Deprecate: level parameter for aggregations in DataFrame and Series #39983

Closed
@devin-petersohn

Description

@devin-petersohn

For sum, prod, count, etc. there is a parameter level which is internally rewritten into groupby.

I propose that the level parameter for these aggregations be deprecated and instead recommend to users that they use the groupby syntax.

The functions that would be affected are:

  • any
  • all
  • count
  • sum
  • prod
  • max
  • min
  • mean
  • median
  • skew
  • kurt
  • sem
  • var
  • std
  • mad

I believe this list is comprehensive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasGroupbyNumeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions