Skip to content

Commit 0958554

Browse files
committed
CLN: combine axis and actual into one statement (#35498)
1 parent b875b43 commit 0958554

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/indexes/test_indexing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,5 @@ def test_getitem_deprecated_float(idx):
195195
)
196196
def test_get_indexer_non_unique_multiple_nans(idx, target, expected):
197197
# GH 35392
198-
axis = Index(idx)
199-
actual = axis.get_indexer_for(target)
198+
actual = Index(idx).get_indexer_for(target)
200199
tm.assert_numpy_array_equal(actual, expected)

0 commit comments

Comments
 (0)