CsanadT commited on
Commit
6b4283a
1 Parent(s): 7af8d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -51,7 +51,7 @@ st.sidebar.write("-" * 36)
51
  preds = model.predict(data_encoder(weekly_data)).astype(int)
52
  poll_level = get_aplevel(preds.T.reshape(-1, 1))
53
 
54
- next_week = [[(today + timedelta(days=d)).strftime('%Y-%m-%d'), (today + timedelta(days=d)).strftime('%A')] for d in range(7)]
55
 
56
  df = pd.DataFrame(data=[preds, poll_level], index=["AQI", "Air pollution level"], columns=next_week)
57
 
 
51
  preds = model.predict(data_encoder(weekly_data)).astype(int)
52
  poll_level = get_aplevel(preds.T.reshape(-1, 1))
53
 
54
+ next_week = [f"{(today + timedelta(days=d)).strftime('%Y-%m-%d')}, {(today + timedelta(days=d)).strftime('%A')}" for d in range(7)]
55
 
56
  df = pd.DataFrame(data=[preds, poll_level], index=["AQI", "Air pollution level"], columns=next_week)
57