物业费添加分数
This commit is contained in:
@@ -248,11 +248,11 @@ def find_estate_charge(community, max_now):
|
|||||||
"""
|
"""
|
||||||
estate_charge = None
|
estate_charge = None
|
||||||
if pd.isna(community['location']) or pd.isna(community['location']['lon']):
|
if pd.isna(community['location']) or pd.isna(community['location']['lon']):
|
||||||
return estate_charge
|
return estate_charge, 5
|
||||||
location = [community['location']['lon'], community['location']['lat']]
|
location = [community['location']['lon'], community['location']['lat']]
|
||||||
docs = find_nearest_by_location(community['city'], location)
|
docs = find_nearest_by_location(community['city'], location)
|
||||||
if len(docs) <= 0 or 'estate_charge' not in docs.columns:
|
if len(docs) <= 0 or 'estate_charge' not in docs.columns:
|
||||||
return estate_charge
|
return estate_charge, 5
|
||||||
if 'estate_charge_fix' not in docs.columns:
|
if 'estate_charge_fix' not in docs.columns:
|
||||||
docs['estate_charge_fix'] = None
|
docs['estate_charge_fix'] = None
|
||||||
# 用修正后的物业费补充
|
# 用修正后的物业费补充
|
||||||
|
|||||||
Reference in New Issue
Block a user