Sunpx-95

Results 1 issues of Sunpx-95

您好!在学习sc包的过程中,遇到了问题。 sc.woebin的示例中数据集中加入了空值,使下述special_values 可以分箱。 special_values = { 'credit.amount': [2600, 9960, "6850%missing"] } 但是在数据集的'credit.amount'列数值没有空值的情况下,想要得到"6850%missing"的分箱,会出现报错: ValueError: cannot convert float NaN to integer (在sc的示例中加入了上述special_values ,出现了问题,遂查询了woebin的函数,woebin的示例没有问题,遂对比学习了一下) 虽然一般情况下不会有这样的分箱,但是出现了bug。