From f262bb7ca12602a14a5c1e6d093c06ecaeb066f0 Mon Sep 17 00:00:00 2001 From: Tanweer Ali <21012014+tanweerali@users.noreply.github.com> Date: Wed, 11 May 2022 17:54:31 +0700 Subject: [PATCH 1/2] "today" not defined. "today" not defined. Added -- > "today = date.today().strftime("%Y-%m-%d")" --- ...ime Series Forecasting - Adjusting Prediction Intervals.ipynb | 1 + 1 file changed, 1 insertion(+) diff --git a/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb b/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb index b50ded3..7036ff6 100644 --- a/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb +++ b/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb @@ -640,6 +640,7 @@ "price_today = np.round(new_df['Close'][-1], 2)\n", "predicted_price = np.round(pred_price_unscaled.ravel()[0], 2)\n", "change_percent = np.round(100 - (price_today * 100)/predicted_price, 2)\n", + "today = date.today().strftime("%Y-%m-%d")", "\n", "plus = '+'; minus = ''\n", "print(f'The close price for {stockname} at {today} was {price_today}')\n", From 682be045ae8164c8a6028ace0e7b7c7fb48e9482 Mon Sep 17 00:00:00 2001 From: Tanweer Ali <21012014+tanweerali@users.noreply.github.com> Date: Wed, 11 May 2022 17:56:59 +0700 Subject: [PATCH 2/2] "today" not defined. Added "today = date.today().strftime('%Y-%m-%d')" --- ...me Series Forecasting - Adjusting Prediction Intervals.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb b/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb index 7036ff6..4cf926c 100644 --- a/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb +++ b/004 Time Series Forecasting - Adjusting Prediction Intervals.ipynb @@ -640,7 +640,7 @@ "price_today = np.round(new_df['Close'][-1], 2)\n", "predicted_price = np.round(pred_price_unscaled.ravel()[0], 2)\n", "change_percent = np.round(100 - (price_today * 100)/predicted_price, 2)\n", - "today = date.today().strftime("%Y-%m-%d")", + "today = date.today().strftime('%Y-%m-%d')", "\n", "plus = '+'; minus = ''\n", "print(f'The close price for {stockname} at {today} was {price_today}')\n",