From e5d39afc2079acbd87ceda4d42f803cc6a339b7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Wed, 20 Aug 2025 12:28:59 +0800 Subject: [PATCH] fix bug --- dags/office/sell/base_price.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dags/office/sell/base_price.py b/dags/office/sell/base_price.py index 0d0a3bc..0cc72d1 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -458,6 +458,9 @@ def getOffice(city, district=None, name=None): if pd.notna(city): query['name'] = name office = pd.DataFrame(list(seaweed_df.find(query).batch_size(10000))) + for col in ['city', 'region', 'name', 'alias', 'estate_type2', 'bed_kind', 'lng', 'lat']: + if col not in office: + office[col] = None office = office[['city', 'region', 'name', 'alias', 'estate_type2', 'bed_kind', 'lng', 'lat']] office = office.explode('alias') return office