新增省市区全拼转换

This commit is contained in:
sjshenjian
2024-07-09 16:11:34 +08:00
parent 16999f22b2
commit 840eb8408a
@@ -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",