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: