From 840eb8408ab724bd33e88d522ea465d3a0eb76e8 Mon Sep 17 00:00:00 2001 From: sjshenjian Date: Tue, 9 Jul 2024 16:11:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9C=81=E5=B8=82=E5=8C=BA?= =?UTF-8?q?=E5=85=A8=E6=8B=BC=E8=BD=AC=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dags/business/business/community/full_name.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dags/business/business/community/full_name.py b/dags/business/business/community/full_name.py index b58c223..91a8778 100644 --- a/dags/business/business/community/full_name.py +++ b/dags/business/business/community/full_name.py @@ -28,8 +28,8 @@ def deal(actions, x): if pd.notna(x['city']) and pd.notna(x['region']): if x['city'] + x['region'] in short_map: short_info = short_map[x['city'] + x['region']] - x['city'] = short_info.split('|')[0] - x['region'] = short_info.split('|')[1] + doc_info['city'] = short_info.split('|')[0] + doc_info['region'] = short_info.split('|')[1] action_doc = { "_op_type": "update",