-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: displayed dtype of series inferred from shown subset instead of series #11594
Comments
you have an out-of-range date which forces it back to object. if you had done this via
|
you want something like this maybe?
|
Well, yes, that is the point, I don't have a datetime64 series (because of the out of range datetime), but the series display indicates I do have a datetime64 series. I know that I can convert it, but this is just about the displaying thing (the actual case where I ran into it were some excel data that apparantly had some wrong data. But I didn't directly spot this because the displayed told me everything was fine. |
@jorisvandenbossche ahh I see, we should be displaying the original dtype, not the sliced ones, hmm (and shouldn't be inferring on those), but I think we may be automatically doing that.... |
So
|
closes pandas-dev#12411 closes pandas-dev#12045 closes pandas-dev#11594 closes pandas-dev#10571
All the same issue
So in some cases, you think you have a
datetime64
series, but actually you don't and egdt
properties don't work which can lead to quite some confusion ... :-)The text was updated successfully, but these errors were encountered: