ShichenXie / scorecardpy

Scorecard Development in python, 评分卡
http://shichen.name/scorecard
MIT License
725 stars 301 forks source link

woebin_ply: AttributeError: 'DataFrame' object has no attribute 'explode' #45

Closed yesareyouteahi closed 4 years ago

yesareyouteahi commented 4 years ago

Hi, I'm trying to build a scorecard and while transforming the input data to WOE values, I came across the above mentioned error. When I checked the source code, the input for woebin_ply is a dataframe. Could you please help me out on this?

Okroshiashvili commented 4 years ago

@yesareyouteahi do you have Pandas version 0.25.0 or higher? df.explode was introduced in that Pandas version.

yesareyouteahi commented 4 years ago

@Okroshiashvili No. I had version 0.23.0 and upgraded it to 0.25.0. I figured it out after raising the issue😅. Thanks for the response.