【问题标题】:How to investigate warnings in progress bar in pandas_profiling如何在 pandas_profiling 中调查进度条中的警告
【发布时间】:2026-02-15 18:10:02
【问题描述】:

使用默认示例显示报告时:

df = pd.DataFrame(
    np.random.rand(100, 5),
    columns=['a', 'b', 'c', 'd', 'e']
)

profile = ProfileReport(df, title='Pandas Profiling Report', html={
                        'style': {'full_width': True}})

未显示相关性热图。

如何调查进度条中的警告?

【问题讨论】:

  • 你指的是什么警告?
  • 正如您在屏幕截图中看到的那样,进度条会创建带有“警告 [相关性]”的输出。这正是我的问题。我在哪里可以看到这些警告的详细信息

标签: python pandas dataframe pandas-profiling


【解决方案1】:

进度条让您了解 pandas-profiling 所做的计算。

要查看输出,您有多种选择。查看它们的最简单方法是生成 HTML 报告:

df = pd.DataFrame(
    np.random.rand(100, 5),
    columns=['a', 'b', 'c', 'd', 'e']
)

profile = ProfileReport(df, title='Pandas Profiling Report', html={
                        'style': {'full_width': True}})
profile.to_file("report.html", silent=False)

【讨论】: