移除无用的工具包
This commit is contained in:
@@ -110,6 +110,7 @@ def calcByOffice(city, district, office_name):
|
||||
avg_prices = [doc["avg_price"] for doc in avg_price_ret]
|
||||
# 计算平均值
|
||||
average_price = np.mean(avg_prices) if len(avg_prices) > 0 else 0
|
||||
new_avg_price = None
|
||||
if average_price > 0:
|
||||
new_avg_price = int(average_price)
|
||||
elif "avg_price" in sample.columns:
|
||||
|
||||
Reference in New Issue
Block a user