Closed
Description
Reducers:
- corrwith
- first - BUG: .transform(...) with "first" and "last" fail when axis=1 #46074
- idxmax
- idxmin
- last - BUG: .transform(...) with "first" and "last" fail when axis=1 #46074
- ngroup - BUG: .transform(ngroup) for axis=1 grouper #50761
- nth
All raise a ValueError when used with axis=1
, e.g.
df = DataFrame({"a": [1, 2], "b": [3, 4], "c": [5, 6]}, index=["x", "y"])
result = df.groupby([0, 0, 1], axis=1).transform("first")