Skip to content

Commit 45464d7

Browse files
committed
rev msg
1 parent c5f17ac commit 45464d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/indexing/test_insert.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,6 @@ def test_insert_item_cache(self, using_array_manager):
9393
def test_insert_frame(self):
9494
# GH#42403
9595
df = DataFrame({"col1": [1, 2], "col2": [3, 4]})
96-
msg = "Wrong number of items passed 2, placement implies 1"
96+
msg = "Expected a 1D array, got an array with shape (2, 2)"
9797
with pytest.raises(ValueError, match=msg):
9898
df.insert(1, "newcol", df)

0 commit comments

Comments
 (0)