From 886bad6b8dc4b318f09ce5db9a1f379a41ff5c0d Mon Sep 17 00:00:00 2001 From: Wilfred Bett Date: Wed, 17 Jan 2024 12:41:23 +0300 Subject: [PATCH] Update Time Series Forecastings.ipynb when checking Office supplies first time producing higher sales than furniture the .ix is deprecated hence first_date = store.ix[...] should be changed to first_date = store.loc[....] Thanks --- Time Series Forecastings.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Time Series Forecastings.ipynb b/Time Series Forecastings.ipynb index ca61caf..0951304 100644 --- a/Time Series Forecastings.ipynb +++ b/Time Series Forecastings.ipynb @@ -1067,7 +1067,7 @@ } ], "source": [ - "first_date = store.ix[np.min(list(np.where(store['office_sales'] > store['furniture_sales'])[0])), 'Order Date']\n", + "first_date = store.loc[np.min(list(np.where(store['office_sales'] > store['furniture_sales'])[0])), 'Order Date']\n", "\n", "print(\"Office supplies first time produced higher sales than furniture is {}.\".format(first_date.date()))" ]