Spaces:
Runtime error
Runtime error
Orangefish
commited on
Commit
•
2314030
1
Parent(s):
096b29b
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def greet(name):
|
|
22 |
X = pd.DataFrame()
|
23 |
for i in range(8):
|
24 |
# Get, rename column and rescalef
|
25 |
-
target_date = datetime.today()
|
26 |
target_date = target_date.strftime('%Y-%m-%d')
|
27 |
json = get_weather_by_date(target_date)
|
28 |
X = X.append(json['days'][0], ignore_index=True)
|
|
|
22 |
X = pd.DataFrame()
|
23 |
for i in range(8):
|
24 |
# Get, rename column and rescalef
|
25 |
+
target_date = datetime.today() + timedelta(days=i)
|
26 |
target_date = target_date.strftime('%Y-%m-%d')
|
27 |
json = get_weather_by_date(target_date)
|
28 |
X = X.append(json['days'][0], ignore_index=True)
|