Skip to content

BUG: Mixed DataFrame with Extension Array incorrect aggregation #34520

Closed
@WillAyd

Description

@WillAyd

Surprised to not get an aggregation for "b" with the Int64 dtype

>>> df = pd.DataFrame([["a", 1]], columns=list("ab"))
>>> df.sum()
a    a
b    1
dtype: object
>>> df.astype({"b": "Int64"}).sum()
a    a
dtype: object

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugExtensionArrayExtending pandas with custom dtypes or arrays.RegressionFunctionality that used to work in a prior pandas version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions