def test_append_to_another(self): # hits Index._concat_same_dtype fst = Index(["a", "b"]) snd = CategoricalIndex(["d", "e"]) result = fst.append(snd) expected = Index(["a", "b", "d", "e"]) tm.assert_index_equal(result, expected)
def test_append_to_another(self): # hits _concat_index_asobject fst = Index(['a', 'b']) snd = CategoricalIndex(['d', 'e']) result = fst.append(snd) expected = Index(['a', 'b', 'd', 'e']) tm.assert_index_equal(result, expected)