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

Closed
jreback opened this Issue Sep 30, 2015 · 0 comments

Comments

Projects
None yet
1 participant
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 added this to the Next Major Release milestone Sep 30, 2015

jreback changed the title from BUG: accepte np.datetime64('NaT') in an object dtyped as a null to BUG: accept np.datetime64('NaT') in an object dtyped as a null Sep 30, 2015

@jreback jreback modified the milestone: 0.17.0, Next Major Release, 0.17.1 Oct 1, 2015

@jreback jreback modified the milestone: Next Major Release, 0.17.1 Nov 13, 2015

jreback closed this in #11212 Nov 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment