移除无用的工具包
This commit is contained in:
@@ -112,7 +112,7 @@ def calcByOffice(city, district, office_name):
|
||||
average_price = np.mean(avg_prices) if len(avg_prices) > 0 else 0
|
||||
if average_price > 0:
|
||||
new_avg_price = int(average_price)
|
||||
else:
|
||||
elif "avg_price" in sample.columns:
|
||||
# 取样本的平均值
|
||||
new_avg_price = int(sample['avg_price'].mean())
|
||||
if pd.notna(new_avg_price):
|
||||
|
||||
Reference in New Issue
Block a user