
[英]Pandas profiling not able to import due to error 'cannot import name "DataError' from 'pandas.core.base'"
[英]Cannot import name 'to_html' from 'pandas_profiling.report' using JupyterLab
我是使用 Jupyter Lab 和 Pandas 分析的新手。
我正在尝试在 jupyter 笔记本中安装和导入并安装 Pandas Profiling。 我可以使用 pip 安装 pandas collab,但无法导入库。 该错误表明我无法从“pandas_profiling.report”导入名称“to_html”。
有趣的是:我也尝试在 Google Colab 中运行笔记本,但我得到了一个不同但相似的错误:
ImportError: cannot import name 'PandasProfiling' from 'pandas_profiling' (/usr/local/lib/python3.8/dist-packages/pandas_profiling/__init__.py)
我已经尝试使用来自 Anaconda 的 Jupyter Lab 和 Jupyter Notebook 以及 Google Colab 来查看它是否有效,但没有看到。
conda install -c conda-forge pandas-profiling
看到这个问题。
from pandas_profiling import ProfileReport
https://pandas-profiling.ydata.ai/docs/master/pages/getting_started/quickstart.html
PandasProfiling object 不存在。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.