Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ESPOL
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LALA-Project
ESPOL
Commits
f3fe0669
Commit
f3fe0669
authored
5 years ago
by
Jon Imaz
Browse files
Options
Downloads
Patches
Plain Diff
First Commit
parent
b143dd4b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Early Warning Dropout System/dropout/downDB.py
+1
-1
1 addition, 1 deletion
Early Warning Dropout System/dropout/downDB.py
Early Warning Dropout System/dropout/predict.py
+1
-1
1 addition, 1 deletion
Early Warning Dropout System/dropout/predict.py
with
2 additions
and
2 deletions
Early Warning Dropout System/dropout/downDB.py
+
1
−
1
View file @
f3fe0669
...
...
@@ -2,7 +2,7 @@ import psycopg2, psycopg2.extras
import
pandas
as
pd
import
numpy
as
np
conn
=
psycopg2
.
connect
(
database
=
'
lala_uc3m
'
,
user
=
'
lala_
usr
'
,
password
=
'
0t3H@hG&
'
,
host
=
'
200.10.150.52
'
)
conn
=
psycopg2
.
connect
(
database
=
'
dataBase name
'
,
user
=
'
us
e
r
'
,
password
=
'
password
'
,
host
=
'
IP Address
'
)
cur
=
conn
.
cursor
(
cursor_factory
=
psycopg2
.
extras
.
DictCursor
)
...
...
This diff is collapsed.
Click to expand it.
Early Warning Dropout System/dropout/predict.py
+
1
−
1
View file @
f3fe0669
...
...
@@ -80,6 +80,6 @@ finalData = finalData.drop("ID",1)
#Subimos resultados a la base de datos
print
(
"
Subiendo probabilidad de abandono
"
)
engine
=
create_engine
(
'
postgresql://lala_usr:0t3H@hG&@200.10.150.52:5432/lala_uc3m
'
)
engine
=
create_engine
(
'
database address
'
)
finalData
.
to_sql
(
'
dim_estudiante_dropout
'
,
engine
,
if_exists
=
'
replace
'
,
index
=
False
)
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment