Skip to content

Commit 9c44e23

Browse files
Refine error message for invalid color key
1 parent 30eeec9 commit 9c44e23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/boxplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def _get_colors():
394394
result[key_to_index[key]] = value
395395
else:
396396
raise ValueError(
397-
f"Invalid key '{key}' in color dictionary. Expected one of {valid_keys}. Please refer to documentation."
397+
f"color dict contains invalid key '{key}'. The key must be either {valid_keys}"
398398
)
399399
else:
400400
result.fill(colors)

0 commit comments

Comments
 (0)