Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
f7100909
Commit
f7100909
authored
Feb 07, 2021
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
af5eb77f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
hospital_name_short.py
local/hospital_name_short.py
+3
-1
No files found.
local/hospital_name_short.py
View file @
f7100909
...
...
@@ -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'
]
=
name
s_new
df
[
'new_name'
]
=
new_names
df
[
'core_name'
]
=
third_names
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment