|
|
|
|
@ -163,6 +163,7 @@ def raschet(table_name='service_placementpoint', need_time=True):
|
|
|
|
|
target_post = target_post.rename(columns={'cnt': 'target_post_cnt'})
|
|
|
|
|
pts_inf = pts_inf.drop(columns=['target_post_cnt'])
|
|
|
|
|
pts_inf = pts_inf.join(target_post.set_index('id'), on='id')
|
|
|
|
|
pts_inf['target_post_cnt'] = pts_inf['target_post_cnt'].fillna(0)
|
|
|
|
|
pts_inf['age_day_init'] = pts_inf['age_day']
|
|
|
|
|
pts_inf['age_day'] = 240
|
|
|
|
|
X_inf = pts_inf[feats]
|
|
|
|
|
|