我正在尝试在 conda Jupyter NB 中运行 EDA 的配置文件报告,但不断出现错误。
到目前为止,这是我的代码:
import pandas_profiling
from pandas_profiling import ProfileReport
profile = ProfileReport(data)
和
profile = pandas_profiling.ProfileReport(data)
两者都产生:
TypeError: concat() 得到了一个意外的关键字参数“join_axes”
研究建议升级到我正在使用的 Pandas 1.0。
也试过
data.profile_report()
AttributeError:“DataFrame”对象没有属性“profile_report”
关于我哪里出错的任何提示?
附录...所以我终于想通了。需要在 conda 中安装最新版本的 pandas-profiling,即 202003 版本。太容易了。