【发布时间】:2020-05-27 16:42:34
【问题描述】:
我编写了一些代码来使用 pandas 读取 excel 文件中的一些数据,并希望使用 pandas_profiling 对其进行一些数据分析。但是,由于它花费的时间太长,我想看到某种进度条,说明完成了多少工作,并以最小模式运行分析以加快工作速度。我找到了两种不同的显示方式,进度条。一个如下:(Link here。在高级用法部分我找到了以下代码)。
prof = ProfileReport(data, minimal=True, progress_bar=True)
prof.to_file(output_file='output.html')
另一种方法如下(我在stackoverflow帖子中找到了这个。Link Here):
prof = ProfileReport(data, minimal=True, html={ 'style' : {'full_width' : True}})
prof.to_file(output_file='ouput.html')
但是两者似乎都不起作用。代码执行时间太长(我等了大约 5 个小时但无济于事)。有没有办法显示进度条?如果可能的话,请提出加快工作速度的方法。任何帮助将不胜感激。
我在 Spyder 上使用 Python 3.7,它与 Ananconda 一起提供(如果有帮助的话)。
【问题讨论】:
-
你运行的是哪个版本的 pandas-profiling?
-
我使用的是 pandas-profiling 1.4。感谢您的评论,我检查了我的版本并更新了它,它立即开始工作。感谢您的评论。
标签: python pandas pandas-profiling