4Manuals

  • PDF Cloud HOME

在jupyter上使用pandas_gbq时删除所有日志 Download

    如何将文本边界框与pyplot.Rectangle对齐? 导入类问题 在Python数据框中选择列时出错 使用Rabbit的pika确认消息 如何在按住键的同时暂停VideoStream? Python OpenCV 将我的代码从多处理更改为普通 TypeError:无法处理此数据类型 使用buildozer不会下载sdl2_image 如何从作为请求传递的输入类型数据绑定中提取数据 SMTPSenderRefused,421,超出超时

在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]

我希望结果不算什么。 谢谢

1 个答案:

答案 0 :(得分:2)

那些不是日志,我还以为是一段时间了,但是在使用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}的文档中推荐的一种},但没有成功。

我跳到handle log verbosity,意识到logging code处有一个progress_bar_type参数,必须将其设置为pandas_gbq.read_gbq()才能关闭您要删除的消息。 function

因此,当您调用该函数时,它应该看起来像这样:

None



Similar searches
    如何在Python中打印此输出[自上而下(偶数)] [自下而上(奇数)] uWSGI为什么无法导入实际安装的软件包? WebGL中的模板缓冲区 Samsung RS2533SW Refrigerator User Manual 如何在ROR中添加不同的CSS样式类三元运算符输出