-
-
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
Stripped timedelta[s] series represented as timedelta[ns] #12425
Comments
The same example, but shown in another way:
|
Possibly related with #11594 |
The problem actually lies in (the usage of)
|
well this is a different issue.
e.g. we reject things like this (so we can either reject, or better yet accept both). We do this for
Separately is the bug @jorisvandenbossche notes, #11594 which is different (and not a problem with |
@jreback : ... but there is no problem in the |
These are not stored correctly. We only store as
|
OK... but the ordinary (that is: am I missing an official definition of |
no the repr is wrong which is indicative of the internal represenation is wrong. This needs to be fixed in the astyping. Putting something in the docs is the very last thing to do. It is a bug and should be fixed (though technicaly this is not supported, but prob should be) |
Does the following (on
|
why are you doing this stringifying thing? that doesn't make any sense. yes, this is properly converted to
note, no |
@jreback The stringifying is another way to show what the repr looks like. And this does makes sense in eg the case of timedelta, as the dtype in the repr did not correspond with the actual dtype of the series But in case of datetime64, these values are stored correctly (so @toobaz what you showed in your last comment is not a bug, but the correct behaviour). When doing
Probably the same should happen for
|
@jorisvandenbossche exactly, that's what I noted above. |
... because the snipped representation interprets the content of the series as nanoseconds rather than milliseconds. The same happens with
timedelta[ms]
and probably any other resolution (if there are).The text was updated successfully, but these errors were encountered: