Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tool-code
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
tool-code
Commits
b8963ef7
Commit
b8963ef7
authored
Dec 06, 2021
by
rico.liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete
parent
7b7f57b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
zgcindex_sync_excel2ob.py
数据治理平台线下处理/线下建库/zgcindex_sync_excel2ob.py
+0
-12
No files found.
数据治理平台线下处理/线下建库/zgcindex_sync_excel2ob.py
View file @
b8963ef7
...
@@ -42,14 +42,3 @@ except Exception as e:
...
@@ -42,14 +42,3 @@ except Exception as e:
print
(
'>>> 插入数据失败'
,
e
)
print
(
'>>> 插入数据失败'
,
e
)
df
=
pd
.
read_excel
(
"/Users/rico/WorkSpace/1_Project/Company/中电中采/TEMP Workspace/ES处理相关/ES线下补参处理/安徽三大类结果1119(1).xlsx"
)
for
index
,
row
in
df
.
iterrows
():
doc_id
=
row
[
'DOC_ID'
]
name
=
row
[
'SOURCE_P_LASTCATEGORY_NAME'
]
brand
=
row
[
'SOURCE_P_BRAND_NAME'
]
cursor
.
execute
(
f
"update DW_PRODUCT_ALL_RES set SOURCE_P_LASTCATEGORY_NAME = '{name}', SOURCE_P_BRAND_NAME = '{brand}' where DOC_ID = '{doc_id}'"
)
\ No newline at end of file
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