Skip to content

astype(object) with dtype datetime64 does wacky things when value is NaT #3414

Closed
@lexual

Description

@lexual

Similar to #3416, failing in 0.11

Calling astype(object) when the dtype is datetime64 and there are NaT values, sets them to 2262-04-10 00:12:43.145224

I would have thought they should be set to None.

See attached test case.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions