From f98d87ef0a504267c861a49b8ba0b4c3763d6e1b Mon Sep 17 00:00:00 2001 From: Kishan Manani Date: Sun, 13 Feb 2022 10:33:33 +0000 Subject: [PATCH] BUG: Fix ValueError output in lagmat when using pandas --- statsmodels/tsa/tsatools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statsmodels/tsa/tsatools.py b/statsmodels/tsa/tsatools.py index 4c24db20529..c06e036fe4f 100644 --- a/statsmodels/tsa/tsatools.py +++ b/statsmodels/tsa/tsatools.py @@ -383,7 +383,7 @@ def lagmat(x, trim = trim.lower() if is_pandas and trim in ("none", "backward"): raise ValueError( - "trim cannot be 'none' or 'forward' when used on " + "trim cannot be 'none' or 'backward' when used on " "Series or DataFrames" )