Skip to content

Commit cf10cf7

Browse files
committed
fix series name
1 parent 73cea1f commit cf10cf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/indexing/interval/test_interval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,6 @@ 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-
result1 = df.loc[("b", 16)]
233-
expected = Series([7, 8])
234-
tm.assert_series_equal(result1, expected, check_names=False)
232+
result = df.loc[("b", 16)]
233+
expected = Series([7, 8], name=("b", pd.Interval(13, 17, closed="right")))
234+
tm.assert_series_equal(result, expected)

0 commit comments

Comments
 (0)