Skip to content

Commit 851ae5a

Browse files
committed
TST: fix test (string dtype now roundtrips)
1 parent 40d6480 commit 851ae5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/series/methods/test_replace.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def test_replace2(self):
260260
def test_replace_with_dictlike_and_string_dtype(self):
261261
# GH 32621
262262
s = pd.Series(["one", "two", np.nan], dtype="string")
263-
expected = pd.Series(["1", "2", np.nan])
263+
expected = pd.Series(["1", "2", np.nan], dtype="string")
264264
result = s.replace({"one": "1", "two": "2"})
265265
tm.assert_series_equal(expected, result)
266266

0 commit comments

Comments
 (0)