René's URL Explorer Experiment


Title: BigQuery to_dataframe() ArrowNotImplementedError · Issue #63 · googleapis/python-bigquery · GitHub

Open Graph Title: BigQuery to_dataframe() ArrowNotImplementedError · Issue #63 · googleapis/python-bigquery

X Title: BigQuery to_dataframe() ArrowNotImplementedError · Issue #63 · googleapis/python-bigquery

Description: I'm working with the Google Vision API and trying to do some analysis in pandas. When I try to get the output into pandas there is an issue and I get the NotImplementedError Below. Environment details Specify the API at the beginning of ...

Open Graph Description: I'm working with the Google Vision API and trying to do some analysis in pandas. When I try to get the output into pandas there is an issue and I get the NotImplementedError Below. Environment deta...

X Description: I'm working with the Google Vision API and trying to do some analysis in pandas. When I try to get the output into pandas there is an issue and I get the NotImplementedError Below. Environment ...

Opengraph URL: https://github.com/googleapis/python-bigquery/issues/63

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BigQuery to_dataframe() ArrowNotImplementedError","articleBody":"I'm working with the Google Vision API and trying to do some analysis in pandas. When I try to get the output into pandas there is an issue and I get the NotImplementedError Below.\r\n\r\n#### Environment details\r\n\r\n1. Specify the API at the beginning of the title (for example, \"BigQuery: ...\")\r\n   General, Core, and Other are also allowed as types\r\n2. OS type and version: **GCP AI Notebook** Python framework\r\n3. Python version and virtual environment information: 3.7.6\r\n4. google-cloud-bigquery version:  1.24.0\r\n\r\n#### Steps to reproduce\r\n\r\n  1. Query Vision API output results in nested structs. Our output has **RECORD** datatypes of mode **REPEATED**\r\n\r\n#### Code example\r\n\r\n```python\r\n\r\ndef get_data(_project_id, _table_id):\r\n    \r\n    client = bq.Client(project=_project_id)\r\n    try:\r\n        df = client.query(sql_)\r\n    except OperationalError as oe:\r\n        print(oe.msg)\r\n    print(\"Query Complete. Converting to Dataframe\")\r\n\r\n    df = df.to_dataframe(progress_bar_type='tqdm') # Converts to dataframe\r\n    return df\r\n\r\nsql_ = (\r\n    '''\r\n    SELECT\r\n      *\r\n      FROM `{}`\r\n    '''.format(_table_id)\r\n    )\r\n\r\ndf = get_data(project_id, table_id)\r\n```\r\n\r\n#### Stack trace\r\n```\r\nArrowNotImplementedError                  Traceback (most recent call last)\r\n\u003cipython-input-17-15263a59b273> in \u003cmodule>\r\n----> 1 df = get_data(project_id, table_id)\r\n\r\n\u003cipython-input-16-83704d37548f> in get_data(_project_id, _table_id, verbose)\r\n     18     print(\"Query Complete. Converting to Dataframe\")\r\n     19 \r\n---> 20     df = df.to_dataframe(progress_bar_type='tqdm') # Converts to dataframe\r\n     21     return df\r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/job.py in to_dataframe(self, bqstorage_client, dtypes, progress_bar_type, create_bqstorage_client)\r\n   3372             dtypes=dtypes,\r\n   3373             progress_bar_type=progress_bar_type,\r\n-> 3374             create_bqstorage_client=create_bqstorage_client,\r\n   3375         )\r\n   3376 \r\n\r\n/opt/conda/lib/python3.7/site-packages/google/cloud/bigquery/table.py in to_dataframe(self, bqstorage_client, dtypes, progress_bar_type, create_bqstorage_client)\r\n   1729                 create_bqstorage_client=create_bqstorage_client,\r\n   1730             )\r\n-> 1731             df = record_batch.to_pandas()\r\n   1732             for column in dtypes:\r\n   1733                 df[column] = pandas.Series(df[column], dtype=dtypes[column])\r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/array.pxi in pyarrow.lib._PandasConvertible.to_pandas()\r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.Table._to_pandas()\r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/pandas_compat.py in table_to_blockmanager(options, table, categories, ignore_metadata, types_mapper)\r\n    764     _check_data_column_metadata_consistency(all_columns)\r\n    765     columns = _deserialize_column_index(table, all_columns, column_indexes)\r\n--> 766     blocks = _table_to_blocks(options, table, categories, ext_columns_dtypes)\r\n    767 \r\n    768     axes = [columns, index]\r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/pandas_compat.py in _table_to_blocks(options, block_table, categories, extension_columns)\r\n   1099     columns = block_table.column_names\r\n   1100     result = pa.lib.table_to_blocks(options, block_table, categories,\r\n-> 1101                                     list(extension_columns.keys()))\r\n   1102     return [_reconstruct_block(item, columns, extension_columns)\r\n   1103             for item in result]\r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/table.pxi in pyarrow.lib.table_to_blocks()\r\n\r\n/opt/conda/lib/python3.7/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()\r\n\r\nArrowNotImplementedError: Not implemented type for Arrow list to pandas: struct\u003cscore: double, description: string>\r\n```","author":{"url":"https://github.com/jvschoen","@type":"Person","name":"jvschoen"},"datePublished":"2020-03-17T20:06:59Z","url":"https://github.com/googleapis/python-bigquery/issues/63"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:43642e4d-e75b-0d22-48d7-cf466d28206f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D8E:49756:9D1DD:D1F11:6AFE1F5F
html-safe-nonce089598c168aa0b430af9b4b5e1de2c210a1edb5385b87b96c34c3ece9a06f019
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDhFOjQ5NzU2OjlEMUREOkQxRjExOjZBRkUxRjVGIiwidmlzaXRvcl9pZCI6IjU3ODgwODE5MjYyODM1OTk3MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3061fea1f1cf4624aabfa886072f66c6ebe51497b9377f40679bf1472c84ec68
hovercard-subject-tagissue:583637057
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-bigquery/63/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0793417beb8238ff586aec59b9a375e8d8e6b1c9462556a8817dadce77b43308/googleapis/python-bigquery/issues/63
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0793417beb8238ff586aec59b9a375e8d8e6b1c9462556a8817dadce77b43308/googleapis/python-bigquery/issues/63
og:image:altI'm working with the Google Vision API and trying to do some analysis in pandas. When I try to get the output into pandas there is an issue and I get the NotImplementedError Below. Environment deta...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejvschoen
hostnamegithub.com
expected-hostnamegithub.com
Noned0525ab1464526bf4532a5551aa348cf100dff75ef808a96fc67a08b1d946aa9
turbo-cache-controlno-preview
go-importgithub.com/googleapis/python-bigquery git https://github.com/googleapis/python-bigquery.git
octolytics-dimension-user_id16785467
octolytics-dimension-user_logingoogleapis
octolytics-dimension-repository_id226992475
octolytics-dimension-repository_nwogoogleapis/python-bigquery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id226992475
octolytics-dimension-repository_network_root_nwogoogleapis/python-bigquery
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasefef3993a71fa20f7be8e167132fbf9619bc66e12
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/googleapis/python-bigquery/issues/63#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery%2Fissues%2F63
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgoogleapis%2Fpython-bigquery%2Fissues%2F63
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=googleapis%2Fpython-bigquery
Reloadhttps://github.com/googleapis/python-bigquery/issues/63
Reloadhttps://github.com/googleapis/python-bigquery/issues/63
Reloadhttps://github.com/googleapis/python-bigquery/issues/63
googleapishttps://github.com/googleapis
python-bigqueryhttps://github.com/googleapis/python-bigquery
Codehttps://github.com/googleapis/python-bigquery
Issueshttps://github.com/googleapis/python-bigquery/issues
Pull requestshttps://github.com/googleapis/python-bigquery/pulls
Actionshttps://github.com/googleapis/python-bigquery/actions
Projectshttps://github.com/googleapis/python-bigquery/projects
Security and qualityhttps://github.com/googleapis/python-bigquery/security
Insightshttps://github.com/googleapis/python-bigquery/insights
https://github.com/googleapis/python-bigquery
BigQuery to_dataframe() ArrowNotImplementedErrorhttps://github.com/googleapis/python-bigquery/issues/63#top
https://github.com/jvschoen
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
https://github.com/jvschoen
jvschoenhttps://github.com/jvschoen
on Mar 17, 2020https://github.com/googleapis/python-bigquery/issues/63#issue-583637057
plamuthttps://github.com/plamut
googleapis/google-cloud-pythonhttps://github.com/googleapis/google-cloud-python
on Mar 18, 2020https://github.com/googleapis/python-bigquery/issues/63#event-3140909035
product-auto-labelhttps://github.com/apps/product-auto-label
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
on Mar 18, 2020https://github.com/googleapis/python-bigquery/issues/63#event-3140909234
plamuthttps://github.com/plamut
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
on Mar 18, 2020https://github.com/googleapis/python-bigquery/issues/63#event-3140909963
https://github.com/plamut
plamuthttps://github.com/plamut
on Mar 18, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-600555825
@jvschoenhttps://github.com/jvschoen
related issuehttps://issues.apache.org/jira/browse/ARROW-6899?focusedWorklogId=372098&page=com.atlassian.jira.plugin.system.issuetabpanels%3Aworklog-tabpanel
https://github.com/tswast
tswasthttps://github.com/tswast
on Mar 19, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-601127734
https://fletcher.readthedocs.io/en/latest/https://fletcher.readthedocs.io/en/latest/
https://github.com/jvschoen
jvschoenhttps://github.com/jvschoen
on Mar 19, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-601237555
https://docs.google.com/spreadsheets/d/189O5x5C18pIj5PywpCOVPQeJEygB83Vt8BmRRGFY1cg/edit?usp=sharinghttps://docs.google.com/spreadsheets/d/189O5x5C18pIj5PywpCOVPQeJEygB83Vt8BmRRGFY1cg/edit?usp=sharing
https://github.com/jvschoen
jvschoenhttps://github.com/jvschoen
on Mar 19, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-601310275
https://github.com/emkornfield
emkornfieldhttps://github.com/emkornfield
on Mar 29, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-605588653
https://issues.apache.org/jira/browse/ARROW-7872https://issues.apache.org/jira/browse/ARROW-7872
https://github.com/plamut
plamuthttps://github.com/plamut
on Mar 29, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-605605167
@emkornfieldhttps://github.com/emkornfield
https://github.com/emkornfield
emkornfieldhttps://github.com/emkornfield
on Mar 29, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-605653580
https://github.com/plamut
plamuthttps://github.com/plamut
on Mar 31, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-606519223
@emkornfieldhttps://github.com/emkornfield
fix commithttps://github.com/apache/arrow/commit/3afdc8746ae167978970717670d86ee20a083760#diff-cabbf138b2f6b1433001e098d7be369bR1956
https://github.com/emkornfield
emkornfieldhttps://github.com/emkornfield
on Mar 31, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-606708787
https://github.com/plamut
plamuthttps://github.com/plamut
on Apr 2, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-607814937
https://github.com/jvschoen
jvschoenhttps://github.com/jvschoen
on May 6, 2020https://github.com/googleapis/python-bigquery/issues/63#issuecomment-624729763
jvschoenhttps://github.com/jvschoen
completedhttps://github.com/googleapis/python-bigquery/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 6, 2020https://github.com/googleapis/python-bigquery/issues/63#event-3309127749
JustinBeckwithhttps://github.com/JustinBeckwith
jvschoenhttps://github.com/jvschoen
on Feb 2, 2021https://github.com/googleapis/python-bigquery/issues/63#event-4276604637
Sign up for freehttps://github.com/signup?return_to=https://github.com/googleapis/python-bigquery/issues/63
Sign in to commenthttps://github.com/login?return_to=https://github.com/googleapis/python-bigquery/issues/63
jvschoenhttps://github.com/jvschoen
api: bigqueryIssues related to the googleapis/python-bigquery API.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22api%3A%20bigquery%22
type: questionRequest for information or clarification. Not an issue.https://github.com/googleapis/python-bigquery/issues?q=state%3Aopen%20label%3A%22type%3A%20question%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.