Skip to content

Commit 6b8a89b

Browse files
a-mrozWillAyd
andauthored
Improve error message for non-unique columns
Co-authored-by: William Ayd <[email protected]>
1 parent b14d9e2 commit 6b8a89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/methods/test_explode.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def test_error():
2222
df.columns = list("AA")
2323
with pytest.raises(
2424
ValueError,
25-
match=re.escape("data frame columns must be unique. Duplicate columns: ['A']"),
25+
match=re.escape("DataFrame columns must be unique. Duplicate columns: ['A']"),
2626
):
2727
df.explode("A")
2828

0 commit comments

Comments
 (0)