Jupyter Notebook未能渲染pandas剖析报告
我在使用Pandas Profiling库生成报告时遇到了问题。我已经在新创建的环境中卸载并重新安装了这个库,但还是无法生成任何报告。现在只显示了一个表格,如截图所示。请帮我解决这个问题。
import numpy as np
import pandas as pd
from ydata_profiling import ProfileReport```
```from sklearn.datasets import load_diabetes```
```diab_data=load_diabetes()```
```df=pd.DataFrame(data=diab_data.data,columns=diab_data.feature_names)```
```df.head()```
```### To Create the Simple report quickly
profile = ProfileReport(df, title='Pandas Profiling Report')```
```profile.to_widgets()```
I was expecting To see reports being generated and green progress bar but rather i see 0% rendering and tables. Please help me fix it.
No report is rendered using pandas profiling, i only see this piece of code :
`Summarize dataset: 0%| | 0/5 [00:00<?, ?it/s]
Generate report structure: 0%| | 0/1 [00:00<?, ?it/s]
Render widgets: 0%| | 0/1 [00:00<?, ?it/s]`
`Solution to rendering the report again:`
`pip install -U ipywidgets`
1 个回答
0
你试过这样做吗
profile = ProfileReport(df, title="Pandas Profiling Report")
profile.to_widgets()
在生成报告时,去掉 explorative=True
这个参数呢?