问题
When I am trying to generate report using pandas profiling , I am getting below error while using below code:
KeyError: 'script_values'
import pandas_profiling
from pandas_profiling import ProfileReport
report = ProfileReport(df)
report
Can you please let me know why I am getting 'script_values' error. I googled all around but not able to find a solution.
回答1:
There was a compatibility issue with one of the dependencies. A fix has been released. Your problem should be resolved by updating to v2.7.1 (e.g. pip install -U pandas-profiling
).
The manual steps as described by @jrp also work.
来源:https://stackoverflow.com/questions/61729586/issues-with-pandas-profiling