我正在嘗試在連接Jupyter NB中運行EDA的配置文件報告,但不斷收到錯誤。這是我到目前為止的代碼: import pandas_profiling
from pandas_profiling import ProfileReport
profile = ProfileReport(data)和 profile = pandas_profiling.ProfileReport(data)兩者都產生:類型錯誤: concat() 得到一個意外的關鍵字參數 “join_axes”研究建議升級到我正在使用的熊貓1.0。也嘗試過 data.profile_report()屬性錯誤:“數據幀”對象沒有屬性“profile_report”關于我哪里出錯了,有什么提示嗎?補遺。。。所以我終于想通了。需要在 conda 中安裝最新版本的熊貓分析,這是202003版本。太容易了。
5 回答

慕哥9229398
TA貢獻1877條經驗 獲得超6個贊
在 conda 中安裝了最新版本(2020 年 3 月)的熊貓分析。
conda install -c conda-forge/label/cf202003 pandas-profiling
然后能夠在朱比特筆記本import pandas_profiling

尚方寶劍之說
TA貢獻1788條經驗 獲得超4個贊

呼啦一陣風
TA貢獻1802條經驗 獲得超6個贊
#update分析到最新版本優先
import sys
!{sys.executable} -m pip install -U pandas-profiling[notebook]
!jupyter nbextension enable --py widgetsnbextension
import pandas as pd
from pandas_profiling import ProfileReport
train = pd.read_csv("train.csv")
#Generate配置文件報告
report = ProfileReport(train)
print(repr(report.report))
report.to_widgets()
添加回答
舉報
0/150
提交
取消