Skip to content

Commit b00da7f

Browse files
committed
update GH ref
1 parent 507851b commit b00da7f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/whatsnew/v2.3.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Conversion
102102

103103
Strings
104104
^^^^^^^
105-
- Bug in :meth:`Series.str.replace` when ``n < 0`` for :class:`StringDtype` with ``storage="pyarrow"`` (:issue:`56404`)
105+
- Bug in :meth:`Series.str.replace` when ``n < 0`` for :class:`StringDtype` with ``storage="pyarrow"`` (:issue:`59628`)
106106
-
107107

108108
Interval

pandas/tests/extension/test_arrow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,7 @@ def test_str_replace_negative_n():
18551855
expected = pd.Series(["bc", ""], dtype=ArrowDtype(pa.string()))
18561856
tm.assert_series_equal(expected, actual)
18571857

1858+
# Same bug for pyarrow-backed StringArray GH#59628
18581859
ser2 = ser.astype(pd.StringDtype(storage="pyarrow"))
18591860
actual2 = ser2.str.replace("a", "", -3, True)
18601861
expected2 = expected.astype(ser2.dtype)

0 commit comments

Comments
 (0)