Last active
June 25, 2021 14:56
-
-
Save matepaavo/f404f6c75dcf54f36bf1ef064578cc60 to your computer and use it in GitHub Desktop.
bq-utils-upload_example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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