-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
convert integer to datetime bug, Python int too large to convert to C long #10987
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
|
Sorry, you did specify the version. Can you give a reprodicible example? (make up some dummy data that gives you this error) |
ok on 0.16.1 as well.
You get this error if the unit you pass is incompatible
|
Just to clarify on @jreback's point here, if the time since epoch is recorded in milliseconds, and you select seconds as your unit, you get this very unhelpful error. |
yeah, we should prob just catch this and re-raise as a more helpful error message. Want to do a PR? |
Here is the error message i got when i tried to regenerate this issue. It looks like it already has been solved. Should we close this issue?
|
yes, a number of issues have touched on this recently. I don't think any more tests are necessary. closing as fixed. |
Tests were added here: #13183 |
I have pandas version 0.19.2 and i still get this error when using to_datetime() method. My column type is int64 and i still get errors or no conversion. Check this issue post: #13183 Thanks. |
OutOfBoundsDatetime: cannot convert input with unit 's' |
#Time = data['timestamp'] OverflowError: Python int too large to convert to C lon |
pandas version
pandas (0.16.1)
The text was updated successfully, but these errors were encountered: