Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

special_values bug in sc.woebin #38

Open
Sunpx-95 opened this issue Dec 5, 2019 · 1 comment
Open

special_values bug in sc.woebin #38

Sunpx-95 opened this issue Dec 5, 2019 · 1 comment

Comments

@Sunpx-95
Copy link

Sunpx-95 commented Dec 5, 2019

您好!在学习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。

@ShichenXie
Copy link
Owner

我回头看看啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants