【发布时间】:2021-11-05 05:57:04
【问题描述】:
我有包含多个表的数据集。我想检查一下
- 唯一列列表
- 所有表的列列表。
我试过了: 这给了我 df 然后列出所有表名
%%bigquery --project ProjectID df
SELECT* EXCEPT(is_typed) FROM tenjin.INFORMATION_SCHEMA.TABLES
#sort list a-z of all the tables inside tenjin
all_tables = sorted(list(df.table_name))
现在我想运行一个循环或 SQL 查询,它可以给我所有列的名称:
我试过了
for table in all_tables:
print("bring magic unique columns list here")
print("columnslist")
【问题讨论】:
标签: python api google-cloud-platform google-bigquery google-colaboratory