优化租金加载
This commit is contained in:
@@ -61,7 +61,7 @@ rent_df = pd.DataFrame()
|
||||
for city in cities:
|
||||
# 求租金
|
||||
temp_df = pd.DataFrame(list(sqmetre_rent_conn.find(
|
||||
{'weekend': {'$gt': month_start_date, '$lte': curr_month_start_date}, 'city': city},
|
||||
{'weekend': {'$gt': month_start_date, '$lte': curr_month_start_date}, 'city': city, 'cat': 'district'},
|
||||
{'city': 1, 'region': 1, 'district_name': 1, 'avg_price': 1}).batch_size(10000)))
|
||||
# 根据阈值过滤
|
||||
if city in min_rent:
|
||||
|
||||
Reference in New Issue
Block a user