Commit f7100909 authored by 张彦钊's avatar 张彦钊

add

parent af5eb77f
......@@ -44,11 +44,13 @@ def name_short():
stop_words = names + location
new_names = []
third_names = []
names_new = []
for name in name_list:
for test_word in ["测试","测试1","ceshi","ceshi1"]:
if test_word in name:
pass
else:
names_new.append(name)
city_tag = "flag"
for city in city_list:
if city in name:
......@@ -70,7 +72,7 @@ def name_short():
third_names.append("无")
new_names.append(name)
df = pd.DataFrame()
df['old_name'] = name_list
df['old_name'] = names_new
df['new_name'] = new_names
df['core_name'] = third_names
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment