RFM
rfm的小技巧:
#对指标进行分组并打分
R_score = pd.cut(R_value,R_bins,labels = [5,4,3,2,1],right = False)
F_score = pd.cut(F_value,F_bins,labels = [1,2,3,4,5],right = False)
M_score = pd.cut(M_value,M_bins,labels = [1,2,3,4,5],right = False)
#给不同等级的客户打标签
rfm[‘R’] = np.wher
原创
2021-03-24 22:03:53 ·
153 阅读 ·
0 评论