Skip to content

Commit e66a2c7

Browse files
hasnain2808topper-123
authored andcommitted
CLN: format replaced with f-strings pandas-dev#29547 (pandas-dev#30355)
1 parent 95e1a63 commit e66a2c7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/indexers.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,7 @@ def validate_indices(indices: np.ndarray, n: int) -> None:
144144
if len(indices):
145145
min_idx = indices.min()
146146
if min_idx < -1:
147-
msg = "'indices' contains values less than allowed ({} < {})".format(
148-
min_idx, -1
149-
)
147+
msg = f"'indices' contains values less than allowed ({min_idx} < -1)"
150148
raise ValueError(msg)
151149

152150
max_idx = indices.max()

0 commit comments

Comments
 (0)