-
-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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 when adding a timedelta to a datetime #6808
Comments
pandas/numpy version? |
pandas 0.13.0 (and 0.13.1) / numpy 1.7.1
|
I'm sorry, forgot to include. Do you think this could be due to the newer numpy version?
|
odd....32-bit python messes this up (must be needs to be explicity converted somewhere). the reason is by default creating an array on 32-bit gives you 32-bit ints, while we use 64-bit ints everywhere thanks for the report I guess don't have an explicit test for this |
closed via b4f3f0f I will post updated binaries here soon: http://pandas.pydata.org/pandas-build/dev/ and this will be in 0.14 thanks for the report |
Thanks for the quick fix. |
Hello,
I wanted to add a specified offset (10 seconds) to and existing datetime (an index previously created by pd.to_datetime), so I thought creating a timedelta and adding it would do the trick. As you can see it doesn't yield an error but produces a rather strange results.
If I try to do the same by creating a datetime.timedelta then everything works as expected.
This is really confusing and hard to spot. I think that pd.to_datetime and pd.to_timedelta should be compatible, but if they are not, please make the error easier to spot.
Thanks,
Adam
The text was updated successfully, but these errors were encountered: