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

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
@jreback
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 this to the Next Major Release milestone Sep 30, 2015

@jreback 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 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