From 740353e0a718e208520db32beafe9e512c795e7a Mon Sep 17 00:00:00 2001 From: wangwenyan Date: Mon, 29 Dec 2025 15:18:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8=E7=9A=84?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/office/sell/base_price.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index a92c708..acca095 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -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: