Skip to content

Commit

Permalink
Merge pull request #8118 from KishManani/lagmat_fix_error_message
Browse files Browse the repository at this point in the history
BUG: Fix ValueError output in lagmat when using pandas
  • Loading branch information
bashtage committed Feb 13, 2022
2 parents 4178af4 + f98d87e commit 152e27d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion statsmodels/tsa/tsatools.py
Expand Up @@ -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"
)

Expand Down

0 comments on commit 152e27d

Please sign in to comment.