From ba3574fbffbbc8d98fde4442a5c4712c0a6be4b5 Mon Sep 17 00:00:00 2001 From: neha3004 Date: Thu, 28 Dec 2023 14:04:14 -0500 Subject: [PATCH] str.fullmatc matches partial string - fix --- pandas/core/arrays/arrow/array.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/arrays/arrow/array.py b/pandas/core/arrays/arrow/array.py index de1ed9ecfdaf1..776a1c0eb950f 100644 --- a/pandas/core/arrays/arrow/array.py +++ b/pandas/core/arrays/arrow/array.py @@ -2271,7 +2271,7 @@ def _str_match( def _str_fullmatch( self, pat, case: bool = True, flags: int = 0, na: Scalar | None = None ): - if not pat.endswith("$") or pat.endswith("//$"): + if not pat.endswith("$") or pat.endswith("\$"): pat = f"{pat}$" return self._str_match(pat, case, flags, na)