【发布时间】:2019-12-30 11:05:16
【问题描述】:
在 jupyter 上使用 pandas_gbq 时是否可以删除所有日志?
示例:
sql = """
SELECT country_name, alpha_2_code
FROM [bigquery-public-data:utility_us.country_code_iso]
WHERE alpha_2_code LIKE 'Z%'
"""
for i in range(10):
df = pandas_gbq.read_gbq(
sql,
project_id=project_id,
# Set the dialect to "legacy" to use legacy SQL syntax. As of
# pandas-gbq version 0.10.0, the default dialect is "standard".
dialect="legacy",
)
结果:
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.08rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.06rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 8.72rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 6.15rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.24rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 8.40rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.27rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.18rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.55rows/s]
Downloading: 100%|██████████| 3/3 [00:00<00:00, 3.26rows/s]
我希望结果什么都不是。 谢谢
【问题讨论】:
标签: python python-3.x logging google-bigquery jupyter