2024-05-15 02:56:28 发布
网友
我试图在我的Google Colab笔记本中使用Pandas_Profiling.ProfilingReport。这是我的代码:
Pandas_Profiling.ProfilingReport
import pandas_profiling profile = pandas_profiling.ProfileReport(df)
然后得到这个错误:
" concat() got an unexpected keyword argument 'join_axes' "
不幸的是,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
你会得到一份报告
不幸的是,google colab中安装的pandas版本不推荐使用“join_axes”功能。如果降级pandas库版本,则可以使用pandas评测。只需在colab中使用:
然后重新启动内核
但是,您将无法使用
因为Google Colab还不支持ipywidgets。但是如果你只是使用
你会得到一份报告
相关问题 更多 >
编程相关推荐