Juypter 笔记本 pandas_profiling:无法从“pandas_profiling.report”导入名称“to_html”

ALT*_*ALT 5 python pandas-profiling

我正在尝试导入熊猫分析。

import pandas as pd !pip install pandas_profiling import pandas_profiling as pp

但是,有一条错误消息说无法从“pandas_profiling.report”导入名称“to_html”

小智 0

我使用 pip 遇到了同样的错误,但在使用 conda install 后它就像一个魅力

conda install -c conda-forge pandas-profiling
Run Code Online (Sandbox Code Playgroud)

如果您不使用 Conda 环境,我建议直接从 github 安装:

pip 安装https://github.com/pandas-profiling/pandas-profiling/archive/master.zip