From 9abc7a56769bc1774c6727fd1ebc7b941585c21d Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Wed, 29 Mar 2023 13:25:50 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E4=B8=9A=E8=B4=B9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=88=86=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/estate_charge_complete.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dags/business/business/community/estate_charge_complete.py b/dags/business/business/community/estate_charge_complete.py index 014a2e9..c50a799 100644 --- a/dags/business/business/community/estate_charge_complete.py +++ b/dags/business/business/community/estate_charge_complete.py @@ -84,7 +84,8 @@ def save_fill(community_summary_df): row = dict() _id = str(item["_id"]) row['estate_charge'] = item['estate_charge'] - row['credit_detail'] = {'estate_charge_score': int(item['estate_charge_score'])} + if pd.notna(item['estate_charge_score']): + row['credit_detail'] = {'estate_charge_score': int(item['estate_charge_score'])} # 1 表示为物业费补充的,在实际应用中不输出 row['estate_charge_flag'] = 1 row['m_date'] = m_date