不要在 pandas-profiling 中使用索引

Ray*_*ell 2 pandas-profiling

当在数据帧上运行 pandas-profiling 时,我看到它将索引分析为变量。注意:我的索引是唯一键(名为UUID)

有没有办法排除引入索引来报告?

我知道我可以在 pandas 中删除它,但在我的脑海中我想做

ProfileReport(df, use_index=False)

Eva*_*van 6

我同意,有一个选项use_index=FalseProfileReport很好而且干净,它显然不存在(尚)。

因此,目前我能找到的排除将索引引入报告的唯一方法是在分析之前将其删除:

df.reset_index(drop=True, inplace=True)
Run Code Online (Sandbox Code Playgroud)

这样就完成了工作。