Skip to content

np.sum(TimedeltaIndex) should return a Timedelta, not np.timedelta64 #25335

Closed
@jbrockmendel

Description

@jbrockmendel

ditto TimedeltaArray. xref #25329.

I think the relevant method is __array_ufunc__, @jorisvandenbossche any idea about this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffBugDatetimeDatetime data dtypeTimedeltaTimedelta data type

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions