Skip to content

timedelta64[ns]: max() and min() return numpy.int64 #2989

Closed
@michaelaye

Description

@michaelaye

I guess that max() and min() are not implementing yet fully:

In [28]: diff.head()
Out[28]:
0               NaT
1   00:00:00.128001
2   00:00:00.127999
3   00:00:00.128001
4   00:00:00.127999
Dtype: timedelta64[ns]

In [29]: diff.max()
Out[29]: 1934745001000

In [30]: diff.max().dtype
Out[30]: dtype('int64')

In [31]: diff[0].dtype
Out[31]: dtype('timedelta64[ns]')

In [32]: diff.min().dtype
Out[32]: dtype('int64')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions