google colab中的Pandas分析错误

2024-05-15 02:56:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在我的Google Colab笔记本中使用Pandas_Profiling.ProfilingReport。这是我的代码:

 import pandas_profiling
 profile = pandas_profiling.ProfileReport(df)

然后得到这个错误:

" concat() got an unexpected keyword argument 'join_axes' "

Tags: 代码importpandasdf错误google笔记本profile
1条回答
网友
1楼 · 发布于 2024-05-15 02:56:28

不幸的是,google colab中安装的pandas版本不推荐使用“join_axes”功能。如果降级pandas库版本,则可以使用pandas评测。只需在colab中使用:

! pip install pandas==0.25

然后重新启动内核

但是,您将无法使用

profile = ProfileReport(df, title="Pandas Profiling Report")
profile.to_widgets()

因为Google Colab还不支持ipywidgets。但是如果你只是使用

profile

你会得到一份报告

相关问题 更多 >

    热门问题