From 16aea01faf1fca4022895a85d2770721f9fa38b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Fri, 25 Apr 2025 16:36:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E9=93=BA=E5=9D=87?= =?UTF-8?q?=E4=BB=B7BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/shop/sell/price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/shop/sell/price.py b/dags/shop/sell/price.py index 02030bb..1067a89 100644 --- a/dags/shop/sell/price.py +++ b/dags/shop/sell/price.py @@ -20,7 +20,7 @@ def calc(city, year_month): "select * from latest_seawater where cat='shop_sell' and city='" + city + "' and p_date>=" + str( year_month) + "01 and p_date<=" + str(year_month) + "31 ") if len(shop) > 0: - shop['day_avg_price'] = shop['avg_price'] / 30 + shop['day_avg_price'] = shop['avg_price'] # 计算总价的Z-score shop['Z_Score'] = (shop['day_avg_price'] - shop['day_avg_price'].mean()) / shop['day_avg_price'].std() # 剔除Z-score超过0.1的异常值