jonathanjordan21 commited on
Commit
1ea28ce
·
verified ·
1 Parent(s): d338a61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -32,8 +32,12 @@ mydb = psycopg2.connect(
32
  )
33
 
34
 
35
- df_sample = pd.read_sql(f"SELECT * FROM {db_user}.sample", mydb)
36
- df_bobot = pd.read_sql(f"SELECT * FROM {db_user}.bobot", mydb)
 
 
 
 
37
  df_bobot['BOBOT'] = [float(x.replace(",",".")) for x in df_bobot['BOBOT']]#.astype(float)
38
  df_bobot["JENIS_KENDARAAN"] = [x[:-2] + x[-1] if x[-2] == "." else x for x in df_bobot["JENIS_KENDARAAN"]]
39
 
 
32
  )
33
 
34
 
35
+ # df_sample = pd.read_sql(f"SELECT * FROM {db_user}.sample", mydb)
36
+ # df_bobot = pd.read_sql(f"SELECT * FROM {db_user}.bobot", mydb)
37
+
38
+ df_sample = pd.read_sql(f"SELECT * FROM sample", mydb)
39
+ df_bobot = pd.read_sql(f"SELECT * FROM bobot", mydb)
40
+
41
  df_bobot['BOBOT'] = [float(x.replace(",",".")) for x in df_bobot['BOBOT']]#.astype(float)
42
  df_bobot["JENIS_KENDARAAN"] = [x[:-2] + x[-1] if x[-2] == "." else x for x in df_bobot["JENIS_KENDARAAN"]]
43