Skip to content

Commit 819804b

Browse files
committed
Added comments changes w/ bug number
1 parent d320405 commit 819804b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/indexes/test_multi.py

+2
Original file line numberDiff line numberDiff line change
@@ -1573,6 +1573,7 @@ def test_is_(self):
15731573
# shouldn't change
15741574
assert mi2.is_(mi)
15751575
mi4 = mi3.view()
1576+
# GH 17464 - Remove duplicate MultiIndex levels
15761577
mi4.set_levels([lrange(10), lrange(10)], inplace=True)
15771578
assert not mi4.is_(mi3)
15781579
mi5 = mi.view()
@@ -2375,6 +2376,7 @@ def test_level_setting_resets_attributes(self):
23752376
['A', 'A', 'B', 'B', 'B'], [1, 2, 1, 2, 3]
23762377
])
23772378
assert ind.is_monotonic
2379+
# GH 17464 - Remove duplicate MultiIndex levels
23782380
ind.set_levels([['A', 'B'], [1, 3, 2]], inplace=True)
23792381
# if this fails, probably didn't reset the cache correctly.
23802382
assert not ind.is_monotonic

0 commit comments

Comments
 (0)