Juypter Notebook中的pandas_profiling:无法从'pandas_profiling.report'导入'to_html'名称

7

我正在尝试导入pandas profiling。

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

然而,出现了一个错误信息,说无法从pandas_profiling.report导入名称为to_html的内容。

1
你解决了吗? - Lucas
2个回答

0

0

以上解决方案在我的情况下无法正常工作

请在您的Anaconda提示符上使用此命令

conda env create -n pandas-profiling
conda activate pandas-profiling
conda install -c conda-forge pandas-profiling

然后您可以在您的编辑器上使用性能报告

from pandas_profiling import ProfileReport

它肯定会工作


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接