From df6bef892082241031ebb72e945178870eb239cb Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Mon, 13 May 2019 13:51:27 -0700 Subject: [PATCH] Replace to_numpy() with values to maintain pd 0.23.4 support --- python/fbprophet/forecaster.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/fbprophet/forecaster.py b/python/fbprophet/forecaster.py index 2433dec..921dd24 100644 --- a/python/fbprophet/forecaster.py +++ b/python/fbprophet/forecaster.py @@ -902,7 +902,7 @@ class Prophet(object): first = self.history['ds'].min() last = self.history['ds'].max() dt = self.history['ds'].diff() - min_dt = dt.iloc[dt.to_numpy().nonzero()[0]].min() + min_dt = dt.iloc[dt.values.nonzero()[0]].min() # Yearly seasonality yearly_disable = last - first < pd.Timedelta(days=730)