使用pandas运行分析报告时出错,给我一个错误;TypeError:descripe_boolean_1d()获取了意外的关键字参数';标题'&引用;

使用pandas运行分析报告时出错,给我一个错误;TypeError:descripe_boolean_1d()获取了意外的关键字参数';标题'&引用;,pandas,Pandas,我正在使用下面的代码 profile = ProfileReport(df, title='Pandas Profiling Report', html={'style':{'full_width':True}}) 运行配置文件报告但收到此错误 "TypeError: describe_boolean_1d() got an unexpected keyword argument 'title'" "TypeError: describe_boolean_1d() got an unexpe

我正在使用下面的代码

profile = ProfileReport(df, title='Pandas Profiling Report', html={'style':{'full_width':True}})
运行配置文件报告但收到此错误

"TypeError: describe_boolean_1d() got an unexpected keyword argument 'title'"
"TypeError: describe_boolean_1d() got an unexpected keyword argument 'html'"
当我删除标题时,我得到了这个错误

"TypeError: describe_boolean_1d() got an unexpected keyword argument 'title'"
"TypeError: describe_boolean_1d() got an unexpected keyword argument 'html'"

我的机器上安装了conda,因此首先尝试使用conda安装pandas profiling,但出现了与您相同的错误

我已删除它:
conda删除它
然后用pip重新安装:
pip安装[notebook,html]

而且效果很好

注意:在边缘浏览器上,可视化不起作用,Chrome可以

最好的, Victor

3个步骤:

pip安装-Uhttps://github.com/pandas-profiling/pandas-profiling/archive/master.zip
pip安装-U
以pp的形式导入用户配置文件
从pandas\u配置文件导入配置文件报告
来源:

我也犯了同样的错误 我在Google Colab中运行以下代码:

profile = ProfileReport(df, title="Pandas Profiling Report")
然后,得到了同样的错误。因为,不知怎的,在Colab中,下面安装pandas_Profiling的代码没有很好地工作:

pip install pandas-profiling[notebook]
由它进行安装会产生错误

解决方案 相反,我使用另一种方法:

pip install https://github.com/pandas-profiling/pandas-profiling/archive/master.zip
然后,重新启动内核并完成。错误消失了