Spaces:
Runtime error
Runtime error
File size: 444 Bytes
baa2a05 ae61035 baa2a05 d30adf0 baa2a05 ae61035 baa2a05 ae61035 baa2a05 7ded522 baa2a05 ae61035 7ded522 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# 19feb2023
#https://huggingface.co/spaces/keras-io/timeseries_forecasting_for_weather/
import streamlit as st
import datetime
import pandas as pd
backlogmax = 4
today = datetime.date.today()
ayear = int(today.strftime("%Y"))
for i in range(ayear-backlogmax,ayear,1):
df = pd.read_csv("https://data.weather.gov.hk/weatherAPI/opendata/opendata.php?dataType=CLMTEMP&year={}&rformat=csv&station=HKO").format(i)
st.write(ayear)
st.write(df)
|