优化日期类型
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user