Skip to content

disallow casting temporal to integer #121

@MarcoGorelli

Description

@MarcoGorelli

in pandas this does something really strange

In [3]: pd.to_datetime(['2020', None]).astype('int64')
Out[3]: Index([1577836800000000000, -9223372036854775808], dtype='int64')

Users shouldn't be relying on phyisical representations anyway, we should nudge them towards .dt.microseconds or whatever it is they're looking for

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions