You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* BUG-Pyarrow-implementation-of-str.fullmatch-matches-partial-string.-Issue-#56652
changed array.py: Makes Series(["abc$abc]).str.fullmatch("abc\\$") give the same result as when dtype = pyarow.string as opposed to dtype = str.
Issue reporter (Issue-#56652) requested change "//$" to "\$", but this resulted in DepreciationWarnng, so used "\\$" instead.
Change test_arrow.py: updated test_str_fullmatch to account for edge cases where string starts with and ends with literal $ as well as ends with the string.
* tidy
* Update and test string_arrow._str_fullmatch
Changed: string_arrow: because it shoud be conistent with other changes. Affects circumstance where dtype="string[pyarrow]" as opposed to dtype=pd.ArrowDtype(pa.string())
Changed: test_find_replace.py: Added unit test for the edge cases where the user wants o search for a string that ends in a literal dollar sign. The string_arrow.oy updates effect this also.
Question: For consistency, I formatted test_fullmatch_dollar_literal() to match other unit tests in .py - Should I instead aim to implement @pytest.mark.parametrize, which is in consistent, but more in line with developer guidelines?
* Update v2.2.0.rst
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v2.2.0.rst
+1
Original file line number
Diff line number
Diff line change
@@ -805,6 +805,7 @@ Strings
805
805
- Bug in :meth:`Series.str.replace` when ``n < 0`` for :class:`ArrowDtype` with ``pyarrow.string`` (:issue:`56404`)
806
806
- Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswith` with arguments of type ``tuple[str, ...]`` for :class:`ArrowDtype` with ``pyarrow.string`` dtype (:issue:`56579`)
807
807
- Bug in :meth:`Series.str.startswith` and :meth:`Series.str.endswith` with arguments of type ``tuple[str, ...]`` for ``string[pyarrow]`` (:issue:`54942`)
808
+
- Bug in :meth:`str.fullmatch` when ``dtype=pandas.ArrowDtype(pyarrow.string()))`` allows partial matches when regex ends in literal //$ (:issue:`56652`)
808
809
- Bug in comparison operations for ``dtype="string[pyarrow_numpy]"`` raising if dtypes can't be compared (:issue:`56008`)
0 commit comments