python - 无法识别关键字轮换(Pandas Profiling)
问题描述
我正在尝试使用 pandas_profiling 包进行数据分析。对于基本用法,我已遵循此文档
https://github.com/pandas-profiling/pandas-profiling
并从中使用以下代码
import numpy as np
import pandas as pd
import pandas_profiling
df = pd.DataFrame(
np.random.rand(100, 5),
columns=['a', 'b', 'c', 'd', 'e']
)
df.profile_report(style={'full_width':True})
但是在 Anaconda 中运行此代码时,我收到以下错误
ValueError:无法识别关键字轮换;有效的关键字是 ['size', 'width', 'color', 'tickdir', 'pad', 'labelsize', 'labelcolor', 'zorder', 'gridOn', 'tick1On', 'tick2On', 'label1On '、'label2On'、'length'、'direction'、'left'、'bottom'、'right'、'top'、'labelleft'、'labelbottom'、'labelright'、'labeltop']
解决方案
供将来参考:更新您的 pandas 和 matplotlib 包。高于 2.4.0 的 pandas-profiling 版本将自动更新这些包。
推荐阅读
- windows - Bat文件获取日期变量文件名
- xml - 为什么 ElementTree 不能解析 XML 文件的副本
- c# - 从 UWP 应用读取系统代理设置
- java - 使用 Maven,WebSocket 连接失败:WebSocket 握手期间出错:意外响应代码:404
- python - 如何将 JSON 作为输入到 python 龙卷风“post”方法
- javascript - 在 Artillery 中跨 YAML 文件使用全局变量
- c# - 有没有办法通过带有 Webjob SDK 的 NotificationHub 发送推送通知?
- entity-framework - IdentityUsers 在哪里上传到数据库?
- python - Findall 识别下载的 HTML 页面中的特定标题
- pip - 无法启动 qutebrowser,安装的包显示为丢失