-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Incorrect handling of datetime64 values in structured arrays #2095
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
Comments
Similarly with timedelta64:
|
It's even worse with timedelta64 because I can find no way to convince DataFrame to just let it through unmolested. Is there any way to do this? I've tried
|
DataFrame's preference is to coerce datetime64 values to nanoseconds. I have no test coverage at all for timedelta64-- where is this data originating for you? I will do what I can |
The timedelta64s are coming from a database of offsets (KDB times; they can be negative, so they're best represented as time deltas in some cases). Thanks for the quick patch. Is it harder to leave the timedelta64 type information as it was passed in than convert to nanoseconds? If I pass in datetime64[D] I want to maintain the distinction between points in time and symbolic dates. Pandas should respect that if possible. |
Handling multiple datetime64/timedelta64 units is pretty difficult right now. I do plan to change that soon (there will be more "type management work" in 0.10, not soon-to-be-released 0.9.1 though)-- I'm going to look at the timedelta64 issue separately. |
OK, thanks very much |
Is there a ticket I can watch for the improved datetime handling? I've searched through but can't find anything similar. |
You should open one (or more) for whatever features you're looking for exactly |
see:
cf http://stackoverflow.com/questions/12369546/pandas-parsing-datetime-column-from-sqlite-database
The text was updated successfully, but these errors were encountered: