From ece4633ab146e00008efc76a40354905b140dbe7 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:32:28 +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 0cc72d1..969b32b 100644 --- a/dags/office/sell/base_price.py +++ b/dags/office/sell/base_price.py @@ -157,6 +157,8 @@ def update_office(city, office, sample, year_month): office['bed_kind'] = None if 'estate_type2' not in office.columns: office['estate_type2'] = None + if sample.empty: + return sample_new = sample if 'alias' not in sample_new.columns: sample_new['alias'] = None