Skip to content

Commit 45e6e64

Browse files
a-mrozWillAyd
andcommitted
Improve error message for non-unique columns
Co-authored-by: William Ayd <[email protected]>
1 parent a7af873 commit 45e6e64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/frame/methods/test_explode.py

Lines changed: 1 addition & 1 deletion
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)