Skip to content

Commit 0b719f5

Browse files
committed
Test for previous commit
1 parent 1f2f385 commit 0b719f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/tests/indexing/test_multiindex.py

+5
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ def test_loc_getitem_series(self):
158158
result = x.loc[[1, 3]]
159159
tm.assert_series_equal(result, expected)
160160

161+
# GH15424
162+
y1 = Series([1, 3], index=[1, 2])
163+
result = x.loc[y1]
164+
tm.assert_series_equal(result, expected)
165+
161166
empty = Series(data=[], dtype=np.float64)
162167
expected = Series([], index=MultiIndex(
163168
levels=index.levels, labels=[[], []], dtype=np.float64))

0 commit comments

Comments
 (0)