我正在尝试使用 Pandas_Profiling.ProfilingReport
在我的 Google Colab 笔记本中。这是我的代码:
import pandas_profiling
profile = pandas_profiling.ProfileReport(df)
并得到该错误:
" concat() got an unexpected keyword argument 'join_axes' "
最佳答案
不幸的是,在 google colab 中安装的 Pandas 版本中不推荐使用“join_axes”功能。如果您降级 Pandas 库版本,您可以使用 Pandas Profiling。只需在您的 colab 中使用:
! pip install pandas==0.25
然后重启内核!
但是,您将无法使用
profile = ProfileReport(df, title="Pandas Profiling Report")
profile.to_widgets()
因为 Google Colab 还不支持 ipywidgets。但如果你只是使用
profile
你会得到一份报告
关于python - 谷歌colab中的 Pandas 分析错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61283382/