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,