From 8d07f4daffb8ea468644b9911f5dce02eee2c54c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B2=88=E5=81=A5?= Date: Mon, 26 Aug 2024 10:12:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/percentile.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dags/business/business/community/percentile.py b/dags/business/business/community/percentile.py index dd8480f..d0efdb4 100644 --- a/dags/business/business/community/percentile.py +++ b/dags/business/business/community/percentile.py @@ -73,7 +73,11 @@ def calc_percentile(city=None): _id = str(item["id"]) for column in columns: if pd.notna(item[column + '_percentile']): - row[column + '_percentile'] = int(item[column + '_percentile']) + if 'estate_charge_fix' == column: + db_column = "estate_charge_percentile" + else: + db_column = column + '_percentile' + row[db_column] = int(item[column + '_percentile']) action = {'_op_type': 'update', '_index': index_name,