Spaces:
Runtime error
Runtime error
Orangefish
commited on
Commit
•
f6da296
1
Parent(s):
34efa0d
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ import time
|
|
16 |
from datetime import timedelta, datetime
|
17 |
from branca.element import Figure
|
18 |
|
19 |
-
from functions import
|
20 |
|
21 |
def greet(name):
|
22 |
X = pd.DataFrame()
|
@@ -25,8 +25,7 @@ def greet(name):
|
|
25 |
next_day_date = datetime.today() + timedelta(days=i)
|
26 |
next_day = next_day_date.strftime ('%Y-%m-%d')
|
27 |
json = get_weather_json_quick(next_day)
|
28 |
-
|
29 |
-
X = X.append(temp, ignore_index=True)
|
30 |
|
31 |
|
32 |
# In[38]:
|
|
|
16 |
from datetime import timedelta, datetime
|
17 |
from branca.element import Figure
|
18 |
|
19 |
+
from functions import get_weather_json_quick
|
20 |
|
21 |
def greet(name):
|
22 |
X = pd.DataFrame()
|
|
|
25 |
next_day_date = datetime.today() + timedelta(days=i)
|
26 |
next_day = next_day_date.strftime ('%Y-%m-%d')
|
27 |
json = get_weather_json_quick(next_day)
|
28 |
+
X = X.append(json['days'][0], ignore_index=True)
|
|
|
29 |
|
30 |
|
31 |
# In[38]:
|