-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series.argsort() fails with datetime64[ns] with NaT / dtypes are odd #2967
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
Labels
Comments
could also put -1 in the places where ? |
I don't think we got this error in
|
yep...but in 0.10.1 the dtype of the series is itself wrong (its object) easy fix any how..
|
jreback
added a commit
to jreback/pandas
that referenced
this issue
Mar 6, 2013
jreback
added a commit
that referenced
this issue
Mar 6, 2013
BUG: Series.argsort failing on datetime64[ns] when NaT present, GH #2967
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
pretty simple fix though, just need to make sure that the result array
is typed float64 (to accomodate the nans) or int64 (if no nans)
(rather than the same as input type)
(which could give weird results in some cases), e.g. you wouldn't
want a float array back just because you fed it nans....
heres the inspiration question
http://stackoverflow.com/questions/15207279/return-sorted-indexes-skipping-nan-values-in-pandas
The text was updated successfully, but these errors were encountered: