Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function to convert array of datetime w/ NaN to datetime64 w/ NaT #999

Closed
wesm opened this issue Apr 5, 2012 · 1 comment
Closed

Function to convert array of datetime w/ NaN to datetime64 w/ NaT #999

wesm opened this issue Apr 5, 2012 · 1 comment
Labels
Datetime Datetime data dtype Enhancement
Milestone

Comments

@wesm
Copy link
Member

wesm commented Apr 5, 2012

May have to wait for NumPy 1.7?

@adamklein
Copy link
Contributor

NaT handling seems non-existant in 1.6. In 1.7,

#define NPY_DATETIME_NAT NPY_MIN_INT64

The pandas files np_datetime.c/h and np_datetime_strings.c/h files are a bit of a mashup from the corresponding numpy files and 1.6/1.7 branches, with edits to get at non-exported numpy datetime functionality via cython.

I'm not sure how much needs to change to make it NaT friendly, but there are clearly some NaT additions in the 1.7 branch that are likely to be important to add into the np_datetime* files.

@wesm wesm closed this as completed in 33f515a Apr 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants