Title: RowIterator to_dataframe requires pyarrow >= 1.0.0 to work · Issue #249 · googleapis/python-bigquery · GitHub
Open Graph Title: RowIterator to_dataframe requires pyarrow >= 1.0.0 to work · Issue #249 · googleapis/python-bigquery
X Title: RowIterator to_dataframe requires pyarrow >= 1.0.0 to work · Issue #249 · googleapis/python-bigquery
Description: Currently the google-cloud-bigquery library requires pyarrow > 0.16.0, however the method RowIterator.to_dataframe adds the kwarg "timestamp_as_object", which is only supported in pyarrow >= 1.0.0. If install pyarrow >= 1.0.0, everything...
Open Graph Description: Currently the google-cloud-bigquery library requires pyarrow > 0.16.0, however the method RowIterator.to_dataframe adds the kwarg "timestamp_as_object", which is only supported in pyarrow >= 1.0.0....
X Description: Currently the google-cloud-bigquery library requires pyarrow > 0.16.0, however the method RowIterator.to_dataframe adds the kwarg "timestamp_as_object", which is only supported in pyar...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/249
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"RowIterator to_dataframe requires pyarrow \u003e= 1.0.0 to work","articleBody":"Currently the google-cloud-bigquery library requires pyarrow \u003e 0.16.0, however the method RowIterator.to_dataframe adds the kwarg \"timestamp_as_object\", which is only supported in pyarrow \u003e= 1.0.0. If install pyarrow \u003e= 1.0.0, everything works as expected, however we are using other libraries which require pyarrow \u003c 1.0.0.\r\n\r\nSo the requirements should either be updated to require pyarrow \u003e= 1.0.0, or backported to support versions less than 1.\r\n\r\n#### Environment details\r\n\r\n - OS type and version: Any\r\n - Python version: 3.6.9\r\n - pip version: 20.2.2\r\n - `google-cloud-bigquery` version: 1.27.2\r\n\r\n#### Steps to reproduce\r\n\r\n 1. Use pyarrow \u003c 1.0.0\r\n 2. Run RowIterator to_dataframe\r\n\r\n#### Stack trace\r\n```\r\n# result = future.result()\r\n File \"\u003cpath\u003e/python3.6/concurrent/futures/_base.py\", line 425, in result\r\n return self.__get_result()\r\n File \"\u003cpath\u003e/python3.6/concurrent/futures/_base.py\", line 384, in __get_result\r\n raise self._exception\r\n File \"\u003cpath\u003e/python3.6/concurrent/futures/thread.py\", line 56, in run\r\n result = self.fn(*self.args, **self.kwargs)\r\n File \"\u003cpath\u003e\", line 133, in run_query\r\n bqstorage_client=client_storage\r\n File \"\u003cpath\u003e/python3.6/site-packages/google/cloud/bigquery/table.py\", line 1757, in to_dataframe\r\n df = record_batch.to_pandas(date_as_object=date_as_object, **extra_kwargs)\r\n File \"pyarrow/array.pxi\", line 503, in pyarrow.lib._PandasConvertible.to_pandas\r\nTypeError: to_pandas() got an unexpected keyword argument 'timestamp_as_object'\r\n```\r\n","author":{"url":"https://github.com/BradLewis","@type":"Person","name":"BradLewis"},"datePublished":"2020-08-27T15:43:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/249/python-bigquery/issues/249"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:da71dc49-1670-4bba-d32c-eb18e1880cc6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B40E:37E3D3:1F74F0B:2B39C4C:6A4F470B |
| html-safe-nonce | e149ead4f2f967f35d251b65730d56340e571e9b0be667b5a1881b67da45cf16 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDBFOjM3RTNEMzoxRjc0RjBCOjJCMzlDNEM6NkE0RjQ3MEIiLCJ2aXNpdG9yX2lkIjoiNzM3OTA5MTEyNTg2MzEzOTA4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99e595ebfd3c7c322a075502fc1569dd654a1e2a11788b68937de8b295c806cd |
| hovercard-subject-tag | issue:687348638 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-bigquery/249/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1447c913c078530294d765f2220b969327d036553d7c7f53c4ac4a5917e56b44/googleapis/python-bigquery/issues/249 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1447c913c078530294d765f2220b969327d036553d7c7f53c4ac4a5917e56b44/googleapis/python-bigquery/issues/249 |
| og:image:alt | Currently the google-cloud-bigquery library requires pyarrow > 0.16.0, however the method RowIterator.to_dataframe adds the kwarg "timestamp_as_object", which is only supported in pyarrow >= 1.0.0.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BradLewis |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992475 |
| octolytics-dimension-repository_nwo | googleapis/python-bigquery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992475 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-bigquery |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width