From 5e548312681f763bbf571805eee988a41041bc9d Mon Sep 17 00:00:00 2001 From: lior1990 Date: Sun, 7 May 2023 16:43:05 +0300 Subject: [PATCH] Make sure 'mu' and 'std' are not numpy floats (#2378) --- python/prophet/forecaster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/prophet/forecaster.py b/python/prophet/forecaster.py index c969f13..5de5cd3 100644 --- a/python/prophet/forecaster.py +++ b/python/prophet/forecaster.py @@ -367,8 +367,8 @@ class Prophet(object): else: standardize = True if standardize: - mu = df[name].mean() - std = df[name].std() + mu = float(df[name].mean()) + std = float(df[name].std()) self.extra_regressors[name]['mu'] = mu self.extra_regressors[name]['std'] = std