Skip to content

Commit f71f627

Browse files
Update pandas/core/indexes/base.py
Co-authored-by: Richard Shadrach <[email protected]>
1 parent efa0017 commit f71f627

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6870,8 +6870,8 @@ def get_slice_bound(self, label, side: Literal["left", "right"]) -> int:
68706870
except ValueError:
68716871
raise KeyError(
68726872
f"Cannot get {side} slice bound for non-monotonic index "
6873-
f"with a non-specific label: {original_label!r}. "
6874-
"Please specify the label."
6873+
f"with a missing label {original_label!r}. "
6874+
"Either sort the index or specify an existing label."
68756875
) from err
68766876

68776877
if isinstance(slc, np.ndarray):

0 commit comments

Comments
 (0)