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