-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
HDFStore complaining about 'timedelta64[ns]' #3577
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
not implemented right now |
Can you elaborate on storing the 2 dates? I'm trying to store a timedelta64 as well. Thanks! |
2 options till i implement
|
Great. I've tried in pandas .12 but any nan or NaT types cause issues in the reinterpretation. For the time being I'm using floats which can represent the nan |
I wouldn't use floats at all NaT are serialized just fine as datetime64 s |
@vfilimonov pls have a look at #4822 lmk what you think |
@jreback unfortunately I don't have that much of python experience and understanding of pandas structure to comment on the code. But querying timedeltas in HDF5 would be extremely useful for me, thanks a lot! |
I am going to support queries like:
anything else ? |
I think that this is pretty enough - I cannot imagine other cases. Perhaps "W" for weeks and "Y" for years might be also useful. And months make no sense for timedeltas. |
ok...just about to merge this .....can always add conversions, pretty easy, though so far have kept it to only exact convertibles, e.g. days,hours,min,sec,ms,us,ns....(but you can pass a timedelta object too) |
@jreback many thanks! |
closed by #4822 |
The HDFStore seemed to not accepting timedelta's objects. The code
results in the
ValueError: unknown type: 'timedelta64[ns]'
.OS: OSX 10.8.3
python: 2.7.4
pandas: 0.11.0
numpy: 1.7.1
tables: 2.4.0
UPDATE:
It seemed to be a pytables issue.
The text was updated successfully, but these errors were encountered: