Title: BigQuery: Upload pandas DataFrame containing arrays · Issue #19 · googleapis/python-bigquery · GitHub
Open Graph Title: BigQuery: Upload pandas DataFrame containing arrays · Issue #19 · googleapis/python-bigquery
X Title: BigQuery: Upload pandas DataFrame containing arrays · Issue #19 · googleapis/python-bigquery
Description: The support for python Bigquery API indicates that arrays are possible, however, when passing from a pandas dataframe to bigquery there is a pyarrow struct issue. The only way round it seems its to drop columns then use JSON Normalise fo...
Open Graph Description: The support for python Bigquery API indicates that arrays are possible, however, when passing from a pandas dataframe to bigquery there is a pyarrow struct issue. The only way round it seems its to...
X Description: The support for python Bigquery API indicates that arrays are possible, however, when passing from a pandas dataframe to bigquery there is a pyarrow struct issue. The only way round it seems its to...
Opengraph URL: https://github.com/googleapis/python-bigquery/issues/19
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BigQuery: Upload pandas DataFrame containing arrays","articleBody":"The support for python Bigquery API indicates that arrays are possible, however, when passing from a pandas dataframe to bigquery there is a pyarrow struct issue.\r\n\r\nThe only way round it seems its to drop columns then use JSON Normalise for a separate table.\r\n\r\n```python\r\nfrom google.cloud import bigquery\r\n\r\nproject = 'lake'\r\nclient = bigquery.Client(credentials=credentials, project=project)\r\ndataset_ref = client.dataset('XXX')\r\ntable_ref = dataset_ref.table('RAW_XXX')\r\njob_config = bigquery.LoadJobConfig()\r\njob_config.autodetect = True\r\njob_config.write_disposition = 'WRITE_TRUNCATE'\r\n\r\nclient.load_table_from_dataframe(appended_data, table_ref,job_config=job_config).result()\r\n```\r\n\r\nThis is the error recieved. NotImplementedError: struct\r\n\r\nThe reason I wanted to use this API as it indicates Nested Array support, which is perfect for our data lake in BQ but I assume this doesn't work?","author":{"url":"https://github.com/AETDDraper","@type":"Person","name":"AETDDraper"},"datePublished":"2019-07-01T12:15:39Z","url":"https://github.com/googleapis/python-bigquery/issues/19"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:767ebf06-edd7-d45a-5d43-7db30c354499 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 88F6:E40BB:914D06:C50547:6AFE7534 |
| html-safe-nonce | 6b0c1ec93667b512d0f5e230670aef33edc8be9e338544f81e31a692d47fac32 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OEY2OkU0MEJCOjkxNEQwNjpDNTA1NDc6NkFGRTc1MzQiLCJ2aXNpdG9yX2lkIjoiNTMyNzU4OTA5NjMxMzIyMjQ1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d840fb27b14b48eb0267c2d5ccaa1eb054459ff6157e0849eb7394afaca10c5b |
| hovercard-subject-tag | issue:559707414 |
| 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/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d078ce0e9cce29c4179ce22dab2e4d7af664e21fc1d2abddd94077c6c889b462/googleapis/python-bigquery/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d078ce0e9cce29c4179ce22dab2e4d7af664e21fc1d2abddd94077c6c889b462/googleapis/python-bigquery/issues/19 |
| og:image:alt | The support for python Bigquery API indicates that arrays are possible, however, when passing from a pandas dataframe to bigquery there is a pyarrow struct issue. The only way round it seems its to... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AETDDraper |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| 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 | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width