Python Pandas 代码格式化:将聚类标签映射为客户类型
r3 = pd.Series(kmodel.labels_, index=df2.index) r3 = r3.map({0: '一般保持客户', 1: '一般发展客户', 2: '重要保持客户', 3: '重要发展客户'}) r3
原文地址: http://www.cveoy.top/t/topic/pb0H 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
r3 = pd.Series(kmodel.labels_, index=df2.index) r3 = r3.map({0: '一般保持客户', 1: '一般发展客户', 2: '重要保持客户', 3: '重要发展客户'}) r3
原文地址: http://www.cveoy.top/t/topic/pb0H 著作权归作者所有。请勿转载和采集!