From 23c82cf0f9d1ac59610c7738b8cb9ff00e22f021 Mon Sep 17 00:00:00 2001 From: MomIsBestFriend <> Date: Sat, 23 Nov 2019 18:56:37 +0200 Subject: [PATCH] Fixed small mistake --- pandas/_libs/tslibs/strptime.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/_libs/tslibs/strptime.pyx b/pandas/_libs/tslibs/strptime.pyx index 71e5006761097..fda508e51e48f 100644 --- a/pandas/_libs/tslibs/strptime.pyx +++ b/pandas/_libs/tslibs/strptime.pyx @@ -110,7 +110,7 @@ def array_strptime(object[:] values, object fmt, f"in format '{fmt}'") # IndexError only occurs when the format string is "%" except IndexError: - raise ValueError("stray % in format '{fmt}'") + raise ValueError(f"stray % in format '{fmt}'") _regex_cache[fmt] = format_regex result = np.empty(n, dtype='M8[ns]')