- Notifications
You must be signed in to change notification settings - Fork321
fix: converting to dataframe with out of bounds timestamps#209
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
plamut commentedAug 1, 2020
@tswast There is inconsistency with the existing |
tswast left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
Regardingdate_as_object, it's a little different in that case, because it doesn't throw an error for dates. They just come back as strings if it's not set.
If we do providetimestamp_as_object, I think it needs to be 3 states:
- (default) the behavior in this fix
- (explicitly false) let the error happen, since they want to use native pandas Timestamp (maybe for performance reasons)
- (explicitly true) always convert to datetime objects
Uh oh!
There was an error while loading.Please reload this page.
plamut commentedAug 6, 2020
Let me know if I should also add an explicit |
tswast left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Thanks!
I think we can wait for a separate PR for thetimestamp_as_object parameter feature.
Uh oh!
There was an error while loading.Please reload this page.
Fixes#168.
This PR fixes the problem when converting query results to Pandas with
pyarrowwhen data contains timestamps that would fall out ofpyarrow's nanoseconds precision.The fix requires
pyarrow>=1.0.0, thus it only works on Python 3.PR checklist