Skip to content

BUG: Some str reducers fail in Groupby.transform with axis=1 #45986

Closed
@rhshadrach

Description

@rhshadrach

Reducers:

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    ApplyApply, Aggregate, Transform, MapBugGroupby

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions