Skip to content

Commit 5e0948d

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6872,7 +6872,7 @@ def get_slice_bound(self, label, side: Literal["left", "right"]) -> int:
68726872
f"Cannot get {side} slice bound for non-monotonic index "
68736873
f"with a missing label {original_label!r}. "
68746874
"Either sort the index or specify an existing label."
6875-
) from err
6875+
) from None
68766876

68776877
if isinstance(slc, np.ndarray):
68786878
# get_loc may return a boolean array, which

0 commit comments

Comments
 (0)