From 5aeaac0d9909f5077d5a7a2d3c602457f94d8444 Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Tue, 5 Jul 2022 15:02:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A7=9F=E9=87=91=E5=8A=A0?= =?UTF-8?q?=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/mt/supply/rent_avg_price.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/mt/supply/rent_avg_price.py b/dags/mt/supply/rent_avg_price.py index 528bd77..9ffb2e2 100644 --- a/dags/mt/supply/rent_avg_price.py +++ b/dags/mt/supply/rent_avg_price.py @@ -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: