Skip to content

Commit 7533f64

Browse files
committed
formatting
1 parent 9345465 commit 7533f64

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pandas/tests/indexing/test_iloc.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ def test_iloc_mask(self):
770770
for idx in [None, "index", "locs"]:
771771
mask = (df.nums > 2).values
772772
if idx:
773-
mask_index = getattr(df, idx if idx == "index" else "locs")[::-1]
773+
mask_index = getattr(df, idx)[::-1]
774774
mask = Series(mask, list(mask_index))
775775
for method in ["", ".loc", ".iloc"]:
776776
try:
@@ -779,10 +779,7 @@ def test_iloc_mask(self):
779779
else:
780780
accessor = df
781781
answer = str(bin(accessor[mask]["nums"].sum()))
782-
except (
783-
ValueError,
784-
IndexingError,
785-
) as err:
782+
except (ValueError, IndexingError) as err:
786783
answer = str(err)
787784

788785
key = (

0 commit comments

Comments
 (0)