Skip to content

Commit a7e9a4e

Browse files
committed
fix test
1 parent 456ae7c commit a7e9a4e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pandas/tests/indexing/interval/test_interval.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,8 @@ def test_multiindex_with_interval_index(self):
229229
multiIndex = pd.MultiIndex.from_arrays([["a", "a", "b", "b", "c"], intIndex])
230230
data = [(1, 2), (3, 4), (5, 6), (7, 8), (9, 10)]
231231
df = DataFrame(data, index=multiIndex)
232-
series1 = df.loc[("b", 16)]
233-
series2 = df.loc["b"].loc[16]
234-
tm.assert_equal(series1.array, series2.array)
232+
result1 = df.loc[("b", 16)]
233+
expected = Series([7, 8])
234+
tm.assert_series_equal(result1, expected, check_names=False)
235+
result2 = df.loc["b"].loc[16]
236+
tm.assert_series_equal(result2, expected, check_names=False)

0 commit comments

Comments
 (0)