Details
-
Bug
-
Status: Open
-
P3
-
Resolution: Unresolved
-
2.25.0
-
None
-
None
Description
It should be possible to use df.groupby(df.group) or df.groupby('group') and get the same result. Unfortunately for some aggregation functions (max, min, all, any), the former produces an output with an extraneous 'group' column. Note this doesn't happen for some functions, like size.
In groupby, we should check if the the series is one of this dataframe's columns when setting the index: https://github.com/apache/beam/blob/cdb882d9ae554556156bff4843f18567b214df13/sdks/python/apache_beam/dataframe/frames.py#L156