Skip to content

Commit 36e6619

Browse files
jahn96mroeschke
andauthored
Update pandas/core/reshape/concat.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent c230b34 commit 36e6619

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/core/reshape/concat.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,7 @@ def concat(
381381
"""
382382
if ignore_index and keys is not None:
383383
raise ValueError(
384-
"Setting ignore_index to true and providing key values are "
385-
"counterproductive. Either should be used."
384+
f"Cannot set {ignore_index=} and specify keys. Either should be used."
386385
)
387386

388387
if copy is not lib.no_default:

0 commit comments

Comments
 (0)