Skip to content

Instantly share code, notes, and snippets.

@matepaavo
Last active June 25, 2021 14:56
Show Gist options
  • Save matepaavo/f404f6c75dcf54f36bf1ef064578cc60 to your computer and use it in GitHub Desktop.
Save matepaavo/f404f6c75dcf54f36bf1ef064578cc60 to your computer and use it in GitHub Desktop.
bq-utils-upload_example
from google.cloud import bigquery
from bqutils.bigquery_description_manager import BigQueryDescriptionManager
bq_client = bigquery.Client()
description_manager = BigQueryDescriptionManager(bq_client)
descriptions_csv_path = 'ga_descriptions.csv'
target_table_id = 'your_project.your_dataset.target_table'
description_manager.upload_field_descriptions(descriptions_csv_path, target_table_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment