From fd586603d97af5e3f43ef8287850d13319c2cb23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Thu, 6 Mar 2025 11:19:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/percentile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dags/business/business/community/percentile.py b/dags/business/business/community/percentile.py index 0fa216e..119e5be 100644 --- a/dags/business/business/community/percentile.py +++ b/dags/business/business/community/percentile.py @@ -23,6 +23,8 @@ def calc_percentile(city=None): community_summary_df = es206_client.scan_by_sql_to_data_frame(sql) community_summary_df['estate_charge_fix'] = community_summary_df['estate_charge'].combine_first(community_summary_df['estate_charge_fix']) community_summary_df['relative_price_ranking'] = community_summary_df['relative_price_ranking'] * 100 + if 'rent_price' not in community_summary_df.columns: + community_summary_df['rent_price'] = 0 consumption_aim_df = community_summary_df[['id', 'city', 'avg_price', 'total_price', 'avg_cost', 'rent_price', 'relative_price_ranking', 'finish_building_date', 'estate_charge_fix', 'household_count', 'build_area']] number = []