Skip to content

BUG: accept np.datetime64('NaT') in an object dtyped as a null #11206

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

Closed
jreback opened this issue Sep 30, 2015 · 0 comments · Fixed by #11212
Closed

BUG: accept np.datetime64('NaT') in an object dtyped as a null #11206

jreback opened this issue Sep 30, 2015 · 0 comments · Fixed by #11212
Labels
Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Sep 30, 2015

from SO

this should work

Out[3]: array([11, 22, 33, nan, numpy.datetime64('NaT')], dtype=object)

In [4]: pd.isnull(ser)
Out[4]: 
0    False
1    False
2    False
3     True
4    False
Name: my_series, dtype: bool

This could be updated: https://github.com/pydata/pandas/blob/master/pandas/tslib.pyx#L711, then lib.isnullobj then could use for null detection

@jreback jreback added Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Difficulty Intermediate labels Sep 30, 2015
@jreback jreback added this to the Next Major Release milestone Sep 30, 2015
@jreback jreback changed the title BUG: accepte np.datetime64('NaT') in an object dtyped as a null BUG: accept np.datetime64('NaT') in an object dtyped as a null Sep 30, 2015
@jreback jreback modified the milestones: 0.17.0, Next Major Release, 0.17.1 Oct 1, 2015
@jreback jreback modified the milestones: Next Major Release, 0.17.1 Nov 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Datetime Datetime data dtype Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant