Skip to content
Snippets Groups Projects
Commit 2133727e authored by Jon Imaz's avatar Jon Imaz
Browse files

First Commit

parent 105e4ce9
No related branches found
No related tags found
No related merge requests found
......@@ -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='dtaBase',user='user',password='password', host='IP Address')
cur = conn.cursor(cursor_factory=psycopg2.extras.DictCursor)
......
......@@ -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')
finalData.to_sql('dim_estudiante_dropout', engine,if_exists = 'replace', index=False)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment