在 html 的 pandas 分析报告中隐藏交互部分

Hide the interactions section in pandas profiling report in html

我已经尝试隐藏相关性、missing_values 和样本值。现在我试图隐藏交互,但我找不到逻辑。

版本 2.4+ 提供了一个最小模式,您可以通过标志参数激活它:

Link to documentation

Version 2.4 introduces minimal mode. This is a default configuration that disables expensive computations (such as correlations and dynamic binning).

profile = ProfileReport(large_dataset, minimal=True)
profile.to_file("output.html")

也许这符合您的需要。

编辑: 您还可以通过 configuration options or by loading a written configuration file

配置输出 html more fine-grained

如果我正确理解你的问题,这应该可以解决问题:

r = ProfileReport(data_set, interactions=None)