在jupyter上使用pandas_gbq时是否可以删除所有日志? 示例: 结果: 我希望结果不算什么。
谢谢 答案 0 :(得分:2) 那些不是日志,我还以为是一段时间了,但是在使用 我跳到handle log verbosity,意识到 因此,当您调用该函数时,它应该看起来像这样: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]
1 个答案:
public String toString() {
return print(this.firstName + " " + this.surname); // include whatever else you want in the string, here I only include the name and surname
}
库并且无法删除消息之后,这是{{3}的文档中推荐的一种},但没有成功。logging
code处有一个progress_bar_type
参数,必须将其设置为pandas_gbq.read_gbq()
才能关闭您要删除的消息。 function None