Details
-
Bug
-
Status: Resolved
-
P2
-
Resolution: Fixed
-
2.29.0, 2.30.0, 2.31.0
Description
df.foo.groupby(lambda x: x % 3).apply(...)
This example fails because it tries to call set_index on a Series. It fails at construction time, not at execution time.
To workaround users can call groupby on a single column dataframe instead, e.g. df[['foo']].groupby...
Attachments
Issue Links
- links to