a10 commited on
Commit
db33599
·
1 Parent(s): 70e9615

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -8
app.py CHANGED
@@ -10,7 +10,6 @@ import streamlit as st
10
  from zipfile import ZipFile
11
  import os
12
  import datetime
13
- import numpy as np
14
 
15
  import warnings
16
  warnings.filterwarnings("ignore")
@@ -20,14 +19,14 @@ mylist = [0, 1, 5, 7, 8, 10, 11]
20
  mylist = [2]
21
  df = pd.DataFrame(columns=["Date Time","p (mbar)","T (degC)","Tpot (K)","Tdew (degC)","rh (%)","VPmax (mbar)","VPact (mbar)","VPdef (mbar)","sh (g/kg)","H2OC (mmol/mol)","rho (g/m**3)","wv (m/s)","max. wv (m/s)","wd (deg)"])
22
 
23
- if ("0" != ""):
24
  uri = "https://storage.googleapis.com/tensorflow/tf-keras-datasets/jena_climate_2009_2016.csv.zip"
25
  zip_path = keras.utils.get_file(origin=uri, fname="jena_climate_2009_2016.csv.zip")
26
  zip_file = ZipFile(zip_path)
27
  zip_file.extractall()
28
  csv_path = "jena_climate_2009_2016.csv"
29
  df = pd.read_csv(csv_path)
30
- st.dataframe(df)
31
 
32
  if ("0" != ""):
33
  backlogmax = 4
@@ -52,10 +51,7 @@ if ("0" != ""):
52
  adf = adf.append({"Date Time":adate,"T (degC)":(row[4]),}, ignore_index=True)
53
  break
54
  df = adf
55
- st.dataframe(df)
56
-
57
- exit()
58
-
59
 
60
  #%%
61
 
@@ -229,4 +225,4 @@ def plot():
229
  fig = plot()
230
  st.pyplot(fig)
231
 
232
- # %%
 
10
  from zipfile import ZipFile
11
  import os
12
  import datetime
 
13
 
14
  import warnings
15
  warnings.filterwarnings("ignore")
 
19
  mylist = [2]
20
  df = pd.DataFrame(columns=["Date Time","p (mbar)","T (degC)","Tpot (K)","Tdew (degC)","rh (%)","VPmax (mbar)","VPact (mbar)","VPdef (mbar)","sh (g/kg)","H2OC (mmol/mol)","rho (g/m**3)","wv (m/s)","max. wv (m/s)","wd (deg)"])
21
 
22
+ if ("0" == ""):
23
  uri = "https://storage.googleapis.com/tensorflow/tf-keras-datasets/jena_climate_2009_2016.csv.zip"
24
  zip_path = keras.utils.get_file(origin=uri, fname="jena_climate_2009_2016.csv.zip")
25
  zip_file = ZipFile(zip_path)
26
  zip_file.extractall()
27
  csv_path = "jena_climate_2009_2016.csv"
28
  df = pd.read_csv(csv_path)
29
+ st.dataframe(df)
30
 
31
  if ("0" != ""):
32
  backlogmax = 4
 
51
  adf = adf.append({"Date Time":adate,"T (degC)":(row[4]),}, ignore_index=True)
52
  break
53
  df = adf
54
+ st.dataframe(df)
 
 
 
55
 
56
  #%%
57
 
 
225
  fig = plot()
226
  st.pyplot(fig)
227
 
228
+ # %%