新增省市区全拼转换
This commit is contained in:
@@ -28,8 +28,8 @@ def deal(actions, x):
|
|||||||
if pd.notna(x['city']) and pd.notna(x['region']):
|
if pd.notna(x['city']) and pd.notna(x['region']):
|
||||||
if x['city'] + x['region'] in short_map:
|
if x['city'] + x['region'] in short_map:
|
||||||
short_info = short_map[x['city'] + x['region']]
|
short_info = short_map[x['city'] + x['region']]
|
||||||
x['city'] = short_info.split('|')[0]
|
doc_info['city'] = short_info.split('|')[0]
|
||||||
x['region'] = short_info.split('|')[1]
|
doc_info['region'] = short_info.split('|')[1]
|
||||||
|
|
||||||
action_doc = {
|
action_doc = {
|
||||||
"_op_type": "update",
|
"_op_type": "update",
|
||||||
|
|||||||
Reference in New Issue
Block a user