This commit is contained in:
2025-11-11 18:40:59 +08:00
parent 2de5f549ed
commit 2e49c448d4
+2
View File
@@ -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: