예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)