a10 commited on
Commit
ae61035
·
1 Parent(s): d30adf0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,10 +1,16 @@
1
  # 19feb2023
 
2
 
3
  import streamlit as st
4
  import datetime
 
5
 
 
6
  today = datetime.date.today()
7
 
8
- year = today.strftime("%Y")
9
 
10
- st.write(year)
 
 
 
 
1
  # 19feb2023
2
+ #https://huggingface.co/spaces/keras-io/timeseries_forecasting_for_weather/
3
 
4
  import streamlit as st
5
  import datetime
6
+ import pandas as pd
7
 
8
+ backlogmax = 4
9
  today = datetime.date.today()
10
 
11
+ ayear = today.strftime("%Y")
12
 
13
+ for i in range(ayear-backlogmax,ayear,1):
14
+ df = pd.read_csv("https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMTEMP&year={}&rformat=csv&station=HKO").format(i)
15
+ st.write(ayear)
16
+ st.write(df)