评级总分临时改为100(支付宝)
This commit is contained in:
@@ -127,7 +127,7 @@ def calc_consumption_rating(community_summary_df):
|
|||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
# 总评级
|
# 总评级
|
||||||
total_rate = 6
|
total_rate = 100
|
||||||
if len(df) < total_rate:
|
if len(df) < total_rate:
|
||||||
# 对于样本低于5的直接排名
|
# 对于样本低于5的直接排名
|
||||||
df[target] = df['consumption_potential'].rank(method='dense', ascending=False).astype(int)
|
df[target] = df['consumption_potential'].rank(method='dense', ascending=False).astype(int)
|
||||||
|
|||||||
Reference in New Issue
Block a user