From 526468b6e84c21d34486366b539f4d63027f7b87 Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Mon, 13 May 2019 15:28:58 -0700 Subject: [PATCH] Fix FutureWarning in test, for sorting because non-concatenation axis is not aligned --- python/fbprophet/tests/test_prophet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fbprophet/tests/test_prophet.py b/python/fbprophet/tests/test_prophet.py index 25f23b6..fac9024 100644 --- a/python/fbprophet/tests/test_prophet.py +++ b/python/fbprophet/tests/test_prophet.py @@ -320,7 +320,7 @@ class TestProphet(TestCase): 'upper_window': [1] * 2, 'prior_scale': [8] * 2, }) - holidays2 = pd.concat((holidays, holidays2)) + holidays2 = pd.concat((holidays, holidays2), sort=True) m = Prophet(holidays=holidays2) feats, priors, names = m.make_holiday_features(df['ds'], m.holidays) pn = zip(priors, [s.split('_delim_')[0] for s in feats.columns]) @@ -332,7 +332,7 @@ class TestProphet(TestCase): 'lower_window': [0] * 2, 'upper_window': [1] * 2, }) - holidays2 = pd.concat((holidays, holidays2)) + holidays2 = pd.concat((holidays, holidays2), sort=True) feats, priors, names = Prophet( holidays=holidays2, holidays_prior_scale=4 ).make_holiday_features(df['ds'], holidays2)