Skip to content

DEPR: pd.Grouper key -> on #15331

Closed
Closed
@jreback

Description

@jreback

xref #15326 (comment)

  • when pd.Grouper was introduced, we used key to indicate the column which to group on
  • .resample added the same idea as on
  • we use on in pd.merge (existing for a long time)
  • .groupby uses by (though to be fair this can take lots of things and is not strictly a string column name).

So the proposal is to deprecate pd.Grouper(key=...) in favor of on=.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeprecateFunctionality to remove in pandasGroupby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions