Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
9 |
|
10 |
-
|
|
|
|
|
|
|
|
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)
|