Skip to content

Commit ba0fd9c

Browse files
author
MomIsBestFriend
committed
Fix merge conflicts
1 parent 6eb74a6 commit ba0fd9c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/core/indexers.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def is_scalar_indexer(indexer, arr_value) -> bool:
3131
Returns
3232
-------
3333
bool
34-
True if X are all scalar indexers.
34+
True if we are all scalar indexers.
3535
"""
3636
if arr_value.ndim == 1:
3737
if not isinstance(indexer, tuple):
@@ -143,11 +143,11 @@ def validate_indices(indices: np.ndarray, n: int) -> None:
143143
if len(indices):
144144
min_idx = indices.min()
145145
if min_idx < -1:
146-
raise ValueError(
147-
f"'indices' contains values less than allowed ({min_idx} < -1)"
148-
)
146+
msg = f"'indices' contains values less than allowed ({min_idx} < -1)"
147+
raise ValueError(msg)
149148

150149
max_idx = indices.max()
150+
151151
if max_idx >= n:
152152
raise IndexError("indices are out-of-bounds")
153153

0 commit comments

Comments
 (0)