pandas 分析的问题 [英] Issues with Pandas Profiling

查看:123
本文介绍了 pandas 分析的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用pandas分析生成报告时,使用以下代码时出现以下错误:

When I am trying to generate report using pandas profiling , I am getting below error while using below code:

KeyError:'script_values'

KeyError: 'script_values'

import pandas_profiling
from pandas_profiling import ProfileReport
report = ProfileReport(df)
report

能否让我知道为什么我收到"script_values"错误.我四处搜寻,但找不到解决方法.

Can you please let me know why I am getting 'script_values' error. I googled all around but not able to find a solution.

推荐答案

其中一个依赖项存在兼容性问题.修复程序已发布.您的问题应该通过更新到v2.7.1(例如pip install -U pandas-profiling)来解决.

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).

@jrp描述的手动步骤也可以使用.

The manual steps as described by @jrp also work.

这篇关于 pandas 分析的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆