Closed
Description
xref #15326 (comment)
- when
pd.Grouper
was introduced, we usedkey
to indicate the column which to group on .resample
added the same idea ason
- we use
on
inpd.merge
(existing for a long time) .groupby
usesby
(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=
.