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:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":21},"url":"https://github.com/19/python-bigquery/issues/19"}
| 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:f735d6cd-36c7-f709-f234-7b099fd4fc5a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BC6:3EE845:5B3C858:7F7688B:6A4F9953 |
| html-safe-nonce | b37e6d0fc93d60fb73f8edf03cff8eec9064fcb9dbe16b940b04a59acb8d99eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkM2OjNFRTg0NTo1QjNDODU4OjdGNzY4OEI6NkE0Rjk5NTMiLCJ2aXNpdG9yX2lkIjoiNTU1ODgzMzQ3NzAwMjk1OTE4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 00a3067e5e223203ac0e3ee7e3f79d2e41cc3c735bd1b0c68981dd40d50d010c |
| 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 | 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