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
2c4c9641
Commit
2c4c9641
authored
Mar 14, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change eda
parent
b35d5900
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
eda.py
tensnsorflow/eda.py
+2
-2
No files found.
tensnsorflow/eda.py
View file @
2c4c9641
...
...
@@ -18,12 +18,12 @@ def test(days):
start
=
(
temp
-
datetime
.
timedelta
(
days
))
.
strftime
(
"
%
Y-
%
m-
%
d"
)
print
(
start
)
sql
=
"select (select count(*) from train_data where stat_date = '{}' and y = 0)/(select count(*) "
\
"from train_data where stat_date = '{}' and z = 1)"
.
format
(
start
)
"from train_data where stat_date = '{}' and z = 1)"
.
format
(
start
,
start
)
db
=
pymysql
.
connect
(
host
=
'10.66.157.22'
,
port
=
4000
,
user
=
'root'
,
passwd
=
'3SYz54LS9#^9sBvC'
,
db
=
'jerry_test'
)
exp
=
con_sql
(
db
,
sql
)
print
(
exp
)
sql
=
"select (select count(*) from train_data where stat_date = '{}' and y = 1 and z = 0)/(select count(*) "
\
"from train_data where stat_date = '{}' and z = 1)"
.
format
(
start
)
"from train_data where stat_date = '{}' and z = 1)"
.
format
(
start
,
start
)
click
=
con_sql
(
db
,
sql
)
return
start
,
exp
,
click
...
...
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