Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
ZHOUXINGYU_project
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
zhou
ZHOUXINGYU_project
Commits
e7e1c876
Commit
e7e1c876
authored
Jan 08, 2020
by
sanlu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
d018e4ef
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
3 deletions
+9
-3
lstm_predict.cpython-36.pyc
__pycache__/lstm_predict.cpython-36.pyc
+0
-0
ZH_SN_data_2020-01-08.xlsx
api_data/ZH_SN_data_2020-01-08.xlsx
+0
-0
ZH_SN_data_dict_2020-01-08.txt
api_data/ZH_SN_data_dict_2020-01-08.txt
+0
-0
ZH_SN_no_category_data_2020-01-08.xlsx
api_data/ZH_SN_no_category_data_2020-01-08.xlsx
+0
-0
main_merge copy.py
main_merge copy.py
+1
-1
main_merge.py
main_merge.py
+8
-2
No files found.
__pycache__/lstm_predict.cpython-36.pyc
View file @
e7e1c876
No preview for this file type
api_data/ZH_SN_data_2020-01-08.xlsx
0 → 100644
View file @
e7e1c876
File added
api_data/ZH_SN_data_dict_2020-01-08.txt
0 → 100644
View file @
e7e1c876
File added
api_data/ZH_SN_no_category_data_2020-01-08.xlsx
0 → 100644
View file @
e7e1c876
File added
main_merge copy.py
View file @
e7e1c876
...
...
@@ -508,7 +508,7 @@ class data_fetch():
return
data_table
if
__name__
==
'__main__'
:
channel
=
'
OFS
'
channel
=
'
SN
'
data_api
=
data_fetch
(
model
=
'LXWL_model'
,
localhost
=
False
,
source
=
f
'ZH_{channel}'
)
data_api_table
=
data_api
.
run
()
#param_extract_function(data_api_table,channel)
\ No newline at end of file
main_merge.py
View file @
e7e1c876
...
...
@@ -521,11 +521,12 @@ class data_fetch():
#data_table = self.tool.judge_peijian(data_table)
data_table
=
data_table
.
reset_index
()
data_table
.
columns
=
[
'SKU'
,
'品牌'
,
'指数品牌'
,
'指数品牌编码'
,
'产品名称'
,
'供应商子类'
,
'指数子类'
,
'指数子类编码'
,
'url'
,
'更新日期'
,
'参数项'
,
'产品型号'
,
'产品价格'
,
'来源'
]
data_table
.
to_excel
(
f
'api_data/{self.source}_data_{StyleTime}.xlsx'
)
data_table
.
to_excel
(
f
'api_data/{self.source}_data_{StyleTime}.xlsx'
,
index
=
False
)
no_category_table
=
data_table
[
data_table
[
'指数子类编码'
]
==
'没有匹配的指数子类编码'
]
no_category_table
.
to_excel
(
f
'api_data/{self.source}_no_category_data_{StyleTime}.xlsx'
)
no_category_table
.
to_excel
(
f
'api_data/{self.source}_no_category_data_{StyleTime}.xlsx'
,
index
=
False
)
return_error
(
no_category_table
)
data_table
=
data_table
[
data_table
[
'指数子类编码'
]
!=
'没有匹配的指数子类编码'
]
data_table
.
to_excel
(
f
'api_data/{self.source}_data_{StyleTime}_category_data.xlsx'
,
index
=
False
)
#self.data_table_80 = data_table[data_table['指数子类编码'].isin(self.class_80['指数编码'].tolist())]
#self.data_table_80.to_excel(f'api_data/{self.source}_data_80_{StyleTime}.xlsx')
#self.data_table_not80 = data_table[~data_table['指数子类编码'].isin(self.class_80['指数编码'].tolist())]
...
...
@@ -533,7 +534,12 @@ class data_fetch():
return
data_table
if
__name__
==
'__main__'
:
channel
=
'SN'
data_api
=
data_fetch
(
model
=
'LXWL_model'
,
localhost
=
False
,
source
=
f
'ZH_{channel}'
)
data_api_table
=
data_api
.
run
()
'''
table = pd.read_excel('api_data/ZH_SN_no_category_data_2020-01-08.xlsx')
return_error(table)
'''
#param_extract_function(data_api_table,channel)
\ 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