为我的 DataFrame 的子集运行配置文件报告时出现以下错误。
ValueError: Value '6.180529706513958' should be a ratio between 1 and 0.
这有效:
profile = ProfileReport(
df, title="Profile Report of the January Conversion Dataset"
)
profile.to_file(Path("../../../products/jan_cvr_report.html"))
profile0 = ProfileReport(
df[df['conversion']==0], title="Profile Report of the January Conversion==0 Dataset"
)
profile0.to_file(Path("../../../products/jan_cvr0_report.html"))
这不会:
profile1 = ProfileReport(
df[df['conversion']==1], title="Profile Report of the January Conversion==1 Dataset"
)
profile1.to_file(Path("../../../products/jan_cvr1_report.html"))