Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
lichenggang
/
bom_identify
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
adb6842f
authored
Jun 05, 2020
by
lichenggang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
没有检查到数量列则把其他数字列当成数量列
parent
cf8635ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
predict/dict_predict.py
predict/dict_predict.py
View file @
adb6842f
...
...
@@ -144,6 +144,16 @@ class DicPredict(BasePredictor):
for
col_nullrate
in
sort_li_nullrate
[
1
:]:
temp_pre_model_res
.
pop
(
col_nullrate
[
0
])
# 如果没有数量列则把之前的序号列(其实是数字列)当成数字列
if
not
prob_num_cols
:
num_col
=
None
for
k
,
v
in
ab_result
.
items
():
if
v
==
'序号'
:
num_col
=
k
if
num_col
:
ab_result
.
pop
(
num_col
)
temp_pre_model_res
[
num_col
]
=
'数量'
model_id_res
=
{
'std_result'
:
temp_pre_model_res
,
'ab_result'
:
ab_result
,
...
...
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