-
-
Notifications
You must be signed in to change notification settings - Fork 302
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
TypeError: unhashable type: 'list' #34
Comments
please provide a sample data and codes to reproduce your issue. Thanks |
I have the same error when I follow the example provided after this : train_woe = sc.woebin_ply(train, bins_adj). the data are germancredit (not my own data). Traceback (most recent call last): File "", line 1, in File "C:\Users\HP\AppData\Local\conda\conda\envs\myenv\lib\site-packages\scorecardpy\woebin.py", line 1137, in woebin_ply File "C:\Users\HP\AppData\Local\conda\conda\envs\myenv\lib\multiprocessing\pool.py", line 276, in starmap File "C:\Users\HP\AppData\Local\conda\conda\envs\myenv\lib\multiprocessing\pool.py", line 657, in get TypeError: unhashable type: 'list' |
are you using Windows OS? |
Yes
It works with pip install scorecardpy
нед, 29. сеп 2019. у 16:10 Shichen <notifications@github.com> је написао/ла:
… are you using Windows OS?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#34?email_source=notifications&email_token=AGJYL4Y7HVEOKEQYGAWCEPLQMCZOPA5CNFSM4I2GYZBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD73VZUY#issuecomment-536304851>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJYL44TNTHG2YKONZKNMNDQMCZOPANCNFSM4I2GYZBA>
.
|
Hi @ShichenXie! Just wondering if Windows OS is the issue with this? |
which version of python are you using. The scorecardpy only supports python 3.6 or below. |
@ShichenXie I have tested on python versions 3.7.4, 3.6.9, and 3.5.6 and I get errors for all three of them Here is the full output [INFO] converting into woe values ... The above exception was the direct cause of the following exception: Traceback (most recent call last): |
It should be the multiprocessing donot supporting windows OS. Try to set no_cores as 1 when using windows, or change to macOS / Linux. I will fix this bug in few days. |
[woebin.py]
line 1020: dtx_suffix = pd.merge(dtx, binx, how='left', on=x_i).sort_values('rowid')
.set_index(dtx.index)[['_'.join([x_i,woe_points])]]
raise error on col "other.installment.plans" :
TypeError: unhashable type: 'list'
++++++++++++++++++++++++++++++++
other.installment.plans
0 [bank, stores]
1 [none]
The text was updated successfully, but these errors were encountered: