Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
84f2c70e
Commit
84f2c70e
authored
Dec 25, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add app list
parent
1e191aec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
applist.py
tensnsorflow/applist.py
+14
-2
No files found.
tensnsorflow/applist.py
View file @
84f2c70e
...
...
@@ -45,7 +45,7 @@ def sort_app():
"short_video"
:
{
"抖音短视频"
,
"快手"
,
"西瓜视频"
,
"火山小视频"
,
"秒拍"
,
"快视频"
,
"小影"
,
"蛙趣视频"
,
"最右"
,
"小咖秀"
},
"meitu"
:
{
"美图秀秀"
,
"美颜相机"
,
"天天P图"
,
"Faceu激萌"
,
"B612咔叽"
,
"in"
,
"相机360"
,
"潮自拍"
,
"玩图"
,
"nice"
},
"玩图"
,
"nice"
,
"轻颜相机"
,
"无他相机"
},
"tiyu"
:
{
"直播吧"
,
"腾讯体育"
,
"新浪体育"
,
"虎扑体育"
,
"懂球帝"
,
"CCTV5"
,
"疯狂体育"
,
"球探体育比分"
,
"PP体育"
,
"A8体育直播"
},
"read"
:{
"掌阅"
,
"QQ阅读"
,
"咪咕阅读"
,
"书旗小说"
,
"多看阅读"
,
"追书神器"
,
"搜狗阅读"
,
"微信读书"
,
...
...
@@ -76,7 +76,19 @@ def sort_app():
df
=
df
.
drop
(
"app_list"
,
axis
=
1
)
yconnect
=
create_engine
(
'mysql+pymysql://root:3SYz54LS9#^9sBvC@10.66.157.22:4000/jerry_test?charset=utf8'
)
pd
.
io
.
sql
.
to_sql
(
df
,
"app_list_sort"
,
yconnect
,
schema
=
'jerry_test'
,
if_exists
=
'replace'
,
index
=
False
)
print
(
df
.
shape
)
n
=
200000
for
i
in
range
(
0
,
df
.
shape
[
0
],
n
):
print
(
i
)
if
i
==
0
:
temp
=
df
.
loc
[
0
:
n
]
elif
i
+
n
>
df
.
shape
[
0
]:
temp
=
df
.
loc
[
i
+
1
:]
else
:
temp
=
df
.
loc
[
i
+
1
:
i
+
n
]
pd
.
io
.
sql
.
to_sql
(
temp
,
"app_list_sort"
,
yconnect
,
schema
=
'jerry_test'
,
if_exists
=
'append'
,
index
=
False
)
print
(
"insert done"
)
if
__name__
==
"__main__"
:
...
...
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