python - 谷歌colab中的 Pandas 分析错误

标签 python pandas google-colaboratory data-analysis

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

相关文章:

python - Elasticsearch 不敏感搜索重音

python - 如何从另一个类别执行滚动求和

python - 为什么两组操作之间没有顺序不变性?

github - 安装后无法在 Google Colab 中导入模块

google-colaboratory - 是否需要每个人都拥有 gmail 帐户才能运行 colab notebook?

python-3.x - TPU : double, 不支持的数据类型由输出 IteratorGetNext:0 引起

python - 使用Python的Requests库,无法调用API来正确格式化

python - 为什么这个问题发生在Python函数作用域中?

python - 列表换行符

python - sklearn-线性回归 : could not convert string to float: '--'