Skip to content

DataFrame.sum() with mix of timedelta and IntegerNA returns NA for IntNA #27185

Closed
@TomAugspurger

Description

@TomAugspurger
In [43]: df = pd.DataFrame({"A": pd.to_timedelta([0, 1, None]), "B": pd.array([1, 2, None], dtype='Int32')})

In [44]: df.sum()
Out[44]:
A   00:00:00.000000
B               NaT
dtype: timedelta64[ns]

cc @jbrockmendel

Not a blocker for the RC, but is a blocker for the release.

Metadata

Metadata

Assignees

Labels

Missing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNA - MaskedArraysRelated to pd.NA and nullable extension arraysNeeds TestsUnit test(s) needed to prevent regressionsNumeric OperationsArithmetic, Comparison, and Logical operationsReduction Operationssum, mean, min, max, etc.good first issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions