移除无用的工具包

This commit is contained in:
2025-12-29 15:16:42 +08:00
parent 4b9c8f6d19
commit 8fd76993fc
+1 -1
View File
@@ -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):