我正在尝试在我的数据集上使用 ydata_profiling 中的 ProfileReport。我正在为我的项目使用虚拟环境。 因此,在我的 venv 中,我安装了 pandas 和 ydata_profiling。 然后,我使用以下代码:
import pandas as pd
import numpy as np
from ydata_profiling import ProfileReport
(使用 pd.read_csv 加载 df)
profile = ProfileReport(df)
profile
我收到以下错误:
AttributeError:模块“matplotlib.cbook”没有属性“mplDeprecation”
我已经尝试过以下方法:
以上均未解决该错误。
关于如何解决此错误还有其他建议吗? 非常感谢!
该问题现已在 GitHub 上报告:https://github.com/ydataai/ydata-profiling/issues/1455