Skip to content

Commit 1c33751

Browse files
committed
Remove duplicate levels from test_level_setting_resets_attributes
1 parent 53f7b84 commit 1c33751

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/tests/indexes/test_multi.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -2371,13 +2371,11 @@ def test_isna_behavior(self):
23712371
pd.isna(self.index)
23722372

23732373
def test_level_setting_resets_attributes(self):
2374-
ind = MultiIndex.from_arrays([
2374+
ind = pd.MultiIndex.from_arrays([
23752375
['A', 'A', 'B', 'B', 'B'], [1, 2, 1, 2, 3]
23762376
])
23772377
assert ind.is_monotonic
2378-
ind.set_levels([['A', 'B', 'A', 'A', 'B'], [2, 1, 3, -2, 5]],
2379-
inplace=True)
2380-
2378+
ind.set_levels([['A', 'B'], [1, 3, 2]], inplace=True)
23812379
# if this fails, probably didn't reset the cache correctly.
23822380
assert not ind.is_monotonic
23832381

0 commit comments

Comments
 (0)