提问人:Usman Rafiq 提问时间:12/24/2019 更新时间:1/24/2020 访问量:2292
无法识别关键字轮换(Pandas 分析)
keyword rotation is not recognized (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']
答:
0赞
Simon
1/24/2020
#1
供将来参考:更新 pandas 和 matplotlib 程序包。低于 2.4.0 的 pandas-profiling 版本将自动更新这些程序包。
评论
pd.show_versions()
'3.1.0'