from google.cloud import bigquery # Construct a BigQuery client object. client = bigquery.Client(credentials=credentials) # TODO(developer): Set table_id to the ID of the model to fetch. table_id = 'raw_engagement.users_landmarks' table = client.get_table(table_id) # Make an API request. table_schema = [{'name':bqfield.name,'type':bqfield.field_type,'mode':bqfield.mode} for bqfield in table.schema]
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter