Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Copy link
Copy link
Closed
@lexual

Description

@lexual
Issue body actions

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

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.