Closed rossowska closed 1 year ago
The latest version of scorecardpy on the Github should already compatible with the latest version of pandas. You can upgrade it and try again.
Had the same issue, it's not pandas but wrong code there.
Line 115 from scorecardpy / woebin.py is commented here, but somehow have it working in my local installation.
So when you go to:
dtm_sv = pd.merge(dtm.fillna("missing"), sv_df[['value']].fillna("missing"), how='inner', on='value', right_index=True)
simply remove right_index=True
and save the file. Run again (reload the module) and voila!
Had the same issue, it's not pandas but wrong code there. Line 115 from scorecardpy / woebin.py is commented here, but somehow have it working in my local installation. So when you go to:
dtm_sv = pd.merge(dtm.fillna("missing"), sv_df[['value']].fillna("missing"), how='inner', on='value', right_index=True)
simply removeright_index=True
and save the file. Run again (reload the module) and voila!
Thanks a lot! Your approach works great.
Please upgrade scorecardpy
to the version on the Github. I have test it on pandas == 1.3.4.
Hi, would it be possible to make the code compatible with the latest version of pandas? I updated pandas and scorecardpy.woebin does not work (MergeError: Can only pass argument "on" OR "left_index" and "right_index", not a combination of both.)