Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
中
中电中采
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
ZGC_INDEX
中电中采
Commits
ea15fe6d
Commit
ea15fe6d
authored
Apr 06, 2021
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f2887063
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Excel数据处理func.py
Excel数据处理func.py
+4
-2
No files found.
Excel数据处理func.py
View file @
ea15fe6d
...
@@ -704,7 +704,7 @@ def GetPointCategoryDataDetail(df,channel_alias,batch):
...
@@ -704,7 +704,7 @@ def GetPointCategoryDataDetail(df,channel_alias,batch):
for
index
,
row
in
cat_df
.
iterrows
():
for
index
,
row
in
cat_df
.
iterrows
():
_id
=
str
(
row
[
'id'
])
_id
=
int
(
row
[
'id'
])
try
:
try
:
params_standard
=
eval
(
row
[
'params_standard'
])
params_standard
=
eval
(
row
[
'params_standard'
])
except
:
except
:
...
@@ -1150,6 +1150,8 @@ def CheckPointParamsData(path):
...
@@ -1150,6 +1150,8 @@ def CheckPointParamsData(path):
init_fraction
=
0
init_fraction
=
0
recommend_pri
=
''
recommend_pri
=
''
for
dict_pri
in
data_dict
[
data_dict
[
'subtitle'
]
==
db_param
][
'primitive'
]
.
unique
()
.
tolist
():
for
dict_pri
in
data_dict
[
data_dict
[
'subtitle'
]
==
db_param
][
'primitive'
]
.
unique
()
.
tolist
():
pri_value
=
str
(
pri_value
)
dict_pri
=
str
(
dict_pri
)
try
:
try
:
fraction_part1
=
similarity_cn
(
pri_value
,
dict_pri
)
fraction_part1
=
similarity_cn
(
pri_value
,
dict_pri
)
except
:
except
:
...
@@ -1574,7 +1576,7 @@ def create_to_db(path,std_value_dict):
...
@@ -1574,7 +1576,7 @@ def create_to_db(path,std_value_dict):
delete_index_list
=
list
()
delete_index_list
=
list
()
for
index
,
row
in
new_df
.
iterrows
():
for
index
,
row
in
new_df
.
iterrows
():
id_
=
str
(
row
[
'id'
])
id_
=
int
(
row
[
'id'
])
brand
=
str
(
row
[
'zi_brandname'
]
.
strip
())
brand
=
str
(
row
[
'zi_brandname'
]
.
strip
())
brandcode
=
row
[
'zi_brandcode'
]
# 建库需要的品牌编码
brandcode
=
row
[
'zi_brandcode'
]
# 建库需要的品牌编码
...
...
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