Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
changzheng_mark
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
EvilCalf
changzheng_mark
Commits
1e6039fc
Commit
1e6039fc
authored
Jul 14, 2022
by
EvilCalf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upload New File
parent
ad7ea269
Pipeline
#308
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
examine2mark.py
examine2mark.py
+26
-0
No files found.
examine2mark.py
0 → 100644
View file @
1e6039fc
from
enum
import
EnumMeta
from
numpy
import
NaN
import
pandas
as
pd
import
json
import
re
src
=
pd
.
read_csv
(
"李巍.csv"
,
encoding
=
"gb18030"
)
series_id
=
src
[
'序列号'
]
.
values
.
tolist
()
imagecnt
=
src
[
'影像结果'
]
.
values
.
tolist
()
src_density_type
=
src
[
'肺结节类型'
]
.
values
.
tolist
()
focus
=
[]
tools
=
[]
diy
=
[]
filetype
=
[]
cnt
=
[]
for
i
,
txt
in
enumerate
(
imagecnt
):
focus
.
append
(
"ANNO3"
)
tools
.
append
(
"CUBOID"
)
diy
.
append
(
""
)
filetype
.
append
(
""
)
text
=
json
.
loads
(
txt
)
tmp
=
"{
\"
lesionId
\"
:0,
\"
position
\"
:"
+
str
(
text
[
'position'
])
+
"}"
cnt
.
append
(
tmp
)
output
=
pd
.
DataFrame
({
"序列号"
:
series_id
,
"病灶"
:
focus
,
"影像工具"
:
tools
,
"影像结果"
:
cnt
,
"自定义内容"
:
diy
,
"文件类型"
:
filetype
,
"肺结节类型"
:
src_density_type
})
output
.
to_csv
(
"李巍_output.csv"
,
index
=
False
,
encoding
=
"utf_8_sig"
)
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