优化日期类型

This commit is contained in:
2025-10-28 11:00:02 +08:00
parent 2f6a40d64a
commit 1b030c9522
9 changed files with 37 additions and 69 deletions
+1
View File
@@ -15,6 +15,7 @@ office_rent_stat_conn = MAIN_MONGO_CLIENT.get_collection('fangjia_stat', 'office
def calc(city, year_month):
print(f"开始处理{city}, {year_month}")
year_month = int(year_month)
query = {'date': year_month, 'cat': 'office'}
if pd.notna(city):
query['city'] = city