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
8f50657d
Commit
8f50657d
authored
Apr 01, 2021
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add columns id
parent
01fec845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
校验参数数据.py
公共代码/校验参数数据.py
+6
-2
No files found.
公共代码/校验参数数据.py
View file @
8f50657d
...
...
@@ -14,7 +14,11 @@ from SimilarCharactor.string_similarity import similarity_cn,similarity_en
def
check_data
(
category_name
,
path
):
df
=
pd
.
read_excel
(
path
,
converters
=
{
'产品编码'
:
str
})
df
=
df
.
rename
(
columns
=
{
'Unnamed: 0'
:
'id'
})
try
:
check_col
=
df
[
'Unnamed: 0'
]
df
=
df
.
rename
(
columns
=
{
'Unnamed: 0'
:
'id'
})
except
:
df
[
'id'
]
=
df
.
index
.
tolist
()
if
'无参数,需补充'
in
df
.
values
:
...
...
@@ -185,7 +189,7 @@ def check_data(category_name,path):
category_name
=
'一体电脑'
path
=
'/Users/rico/Work Space/1_Project/Company/中电中采/数据处理项目_重点类信息提取/一体电脑/一体电脑参数确认.xlsx'
path
=
'/Users/rico/Work Space/1_Project/Company/中电中采/数据处理项目_重点类信息提取/一体电脑/一体电脑参数确认
3
.xlsx'
check_data
(
category_name
,
path
)
...
...
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