优化楼盘评级
This commit is contained in:
@@ -438,6 +438,9 @@ def comms_rating(data):
|
||||
group['block_rating'] = group['block_rating'].map(COMM_RATING_LEVEL_NAMES)
|
||||
buffer.append(group)
|
||||
data = pd.concat(buffer)
|
||||
else:
|
||||
data['block_rating'] = None
|
||||
data['block'] = None
|
||||
for score_factor in ['total_score', 'community_quality_score', 'community_price_score', 'location_advantage_score',
|
||||
'flowability_score', 'living_facilities_score', 'education_score', 'hospital_score']:
|
||||
data[f'{score_factor}'] = data[f'{score_factor}'].apply(lambda x: round(x * 100, 6))
|
||||
|
||||
Reference in New Issue
Block a user