黄包车比赛 python学习

将性别进行编码:  https://github.com/Bifzivkar/Boutique-Travel-Services-Predict/blob/master/feature/2_feature_encode.py

  • gender_mapping = {lab: idx for idx, lab in enumerate(set(userProfile_train['gender'].dropna()))}

 

 2、??  109行

orderFuture['latest_type'][~(orderFuture['latest_type'] >= 0)] = 0 # 历史未下单 类型为0
 

last()

latest = orderHistory[['userid', 'orderid', 'orderType', 'order_time']].groupby(['userid']).last().reset_index()
 

https://github.com/Bifzivkar/Boutique-Travel-Services-Predict/blob/master/feature/5_extract_feature.py

userProfile['province_123'][userProfile['province'].isin(province_1)] = 1 ???

3、 126行到144行代码有啥用啊,根本没用到这个特征  

255行: action.orderid 哪里来的
原文地址:https://www.cnblogs.com/bafenqingnian/p/9691582.html