Skip to content

Commit 3aa4a70

Browse files
test with object dtype
1 parent 5233206 commit 3aa4a70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/copy_view/test_replace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ def test_replace_empty_list(using_copy_on_write):
352352

353353
@pytest.mark.parametrize("value", ["d", None])
354354
def test_replace_object_list_inplace(using_copy_on_write, value):
355-
df = DataFrame({"a": ["a", "b", "c"]})
355+
df = DataFrame({"a": ["a", "b", "c"]}, dtype=object)
356356
arr = get_array(df, "a")
357357
df.replace(["c"], value, inplace=True)
358358
if using_copy_on_write or value is None:

0 commit comments

Comments
 (0)