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
1aea6158
Commit
1aea6158
authored
Dec 26, 2018
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change date
parent
d6ac61ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
applist.py
tensnsorflow/applist.py
+0
-1
ffm.py
tensnsorflow/ffm.py
+1
-1
No files found.
tensnsorflow/applist.py
View file @
1aea6158
...
...
@@ -65,7 +65,6 @@ def sort_app():
"child"
:
{
"小伴龙"
,
"儿歌多多"
,
"宝宝巴士奇妙屋"
,
"智慧树"
,
"贝瓦儿歌"
,
"儿歌点点"
,
"宝贝听听"
,
"宝宝小厨房"
,
"宝宝游乐园"
,
"叽里呱啦"
},
"homework"
:
{
"作业帮"
,
"小猿搜题"
,
"一起作业学生端"
,
"学霸君"
,
"互动作业"
,
"猿题库"
,
"纳米盒"
,
"阿凡题"
,
"洋葱数学"
},
"work"
:
{
"钉钉"
,
"企业微信"
,
"移动彩云"
,
"云之家"
,
"今目标"
,
"口袋助理"
,
"推事本"
,
"奇鱼微办公"
,
"工作圈"
,
"明道"
},
"home"
:
{
"最美装修"
,
"齐家网"
,
"土巴兔装修"
,
"装修头条"
,
"装修管家"
,
"窝牛装修"
,
"丽芙家居"
,
"酷家乐装修"
,
"惠装装修"
,
"房天下装修"
},
"job"
:
{
"智联招聘"
,
"前程无忧"
,
"斗米"
,
"拉勾"
,
"Boss直聘"
,
"猎聘同道"
,
"智联招聘"
}
}
df
[
"app_list"
]
=
df
[
"app_list"
]
.
apply
(
json_format
)
...
...
tensnsorflow/ffm.py
View file @
1aea6158
...
...
@@ -142,7 +142,7 @@ def get_data():
validate_date
=
con_sql
(
db
,
sql
)[
0
]
.
values
.
tolist
()[
0
]
print
(
"validate_date:"
+
validate_date
)
temp
=
datetime
.
datetime
.
strptime
(
validate_date
,
"
%
Y-
%
m-
%
d"
)
start
=
(
temp
-
datetime
.
timedelta
(
days
=
30
))
.
strftime
(
"
%
Y-
%
m-
%
d"
)
start
=
(
temp
-
datetime
.
timedelta
(
days
=
6
))
.
strftime
(
"
%
Y-
%
m-
%
d"
)
print
(
start
)
db
=
pymysql
.
connect
(
host
=
'10.66.157.22'
,
port
=
4000
,
user
=
'root'
,
passwd
=
'3SYz54LS9#^9sBvC'
,
db
=
'jerry_test'
)
sql
=
"select e.y,e.z,e.stat_date,e.ucity_id,e.clevel1_id,e.ccity_name,"
\
...
...
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