MCPcopy
hub / github.com/pandas-dev/pandas / test_unique_na

Method test_unique_na

pandas/tests/indexes/test_base.py:1415–1419  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

uniqueMethod · 0.95
IndexClass · 0.85

Tested by

no test coverage detected