jonathanjordan21 commited on
Commit
0dfe4f9
·
verified ·
1 Parent(s): 083cbfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,9 +39,9 @@ mydb = psycopg2.connect(
39
  df_sample = pd.read_sql(f"SELECT * FROM sample", mydb)
40
  df_bobot = pd.read_sql(f"SELECT * FROM bobot", mydb)
41
 
42
- df_sample["tg_bayar"] = pd.to_datetime(df_sample['tg_bayar']).date()
43
- df_sample["tg_akhir_pkb"] = pd.to_datetime(df_sample['tg_akhir_pkb']).date()
44
- df_sample["tg_akhir_stnk"] = pd.to_datetime(df_sample['tg_akhir_stnk']).date()
45
 
46
 
47
  df_bobot['BOBOT'] = [float(x.replace(",",".")) for x in df_bobot['BOBOT']]#.astype(float)
 
39
  df_sample = pd.read_sql(f"SELECT * FROM sample", mydb)
40
  df_bobot = pd.read_sql(f"SELECT * FROM bobot", mydb)
41
 
42
+ df_sample["tg_bayar"] = pd.to_datetime(df_sample['tg_bayar']).dt.date
43
+ df_sample["tg_akhir_pkb"] = pd.to_datetime(df_sample['tg_akhir_pkb']).dt.date
44
+ df_sample["tg_akhir_stnk"] = pd.to_datetime(df_sample['tg_akhir_stnk']).dt.date
45
 
46
 
47
  df_bobot['BOBOT'] = [float(x.replace(",",".")) for x in df_bobot['BOBOT']]#.astype(float)