We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ecc92f commit 82466c9Copy full SHA for 82466c9
pandas/tests/indexes/multi/test_names.py
@@ -75,6 +75,7 @@ def test_copy_names():
75
assert multi_idx.names == ["MyName1", "MyName2"]
76
assert multi_idx3.names == ["NewName1", "NewName2"]
77
78
+ # gh-35592
79
with pytest.raises(ValueError, match="Length of new names must be 2, got 1"):
80
multi_idx.copy(names=["mario"])
81
0 commit comments