From 2e49c448d492fd8043ca6fd0aa55c624a4fac0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Tue, 11 Nov 2025 18:40:59 +0800 Subject: [PATCH] fix bug --- dags/office/sell/base_price.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index 7a3ac27..902c57f 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -78,6 +78,8 @@ def calcByOffice(city, district, office_name): "type": "Point", "coordinates": [office['lng'] / math.pow(10, 10), office['lat'] / math.pow(10, 10)] } + if "p_date" not in sample.columns: + sample['p_date'] = None date_range = pd.date_range(start=one_year_time, end=year_time, freq='M') for date in date_range: