无法识别关键字轮换(Pandas 分析)

keyword rotation is not recognized (Pandas Profiling)

提问人:Usman Rafiq 提问时间:12/24/2019 更新时间:1/24/2020 访问量:2292

问:

我正在尝试使用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']

Python Pandas 熊猫分析

评论

0赞 anky 12/24/2019
您在 Jupyter Notebook 中发布的代码对我来说很好用
0赞 Usman Rafiq 12/24/2019
你能告诉我为什么我收到这个错误吗,因为我已经安装了所有的库
2赞 ignoring_gravity 12/24/2019
请发布输出pd.show_versions()
1赞 anky 12/24/2019
@UsmanRafiq'3.1.0'
1赞 Usman Rafiq 12/24/2019
@anky_91 在我升级与你的套餐相同后,它对我有用,谢谢

答:

0赞 Simon 1/24/2020 #1

供将来参考:更新 pandas 和 matplotlib 程序包。低于 2.4.0 的 pandas-profiling 版本将自动更新这些程序包。