(self)
| 1413 | assert index2.name == "NewName" |
| 1414 | |
| 1415 | def test_unique_na(self): |
| 1416 | idx = Index([2, np.nan, 2, 1], name="my_index") |
| 1417 | expected = Index([2, np.nan, 1], name="my_index") |
| 1418 | result = idx.unique() |
| 1419 | tm.assert_index_equal(result, expected) |
| 1420 | |
| 1421 | def test_logical_compat(self, simple_index): |
| 1422 | index = simple_index |