Exemplo n.º 1
0
 def test_take_indexer_type(self):
     # GH#42875
     integer_index = Index([0, 1, 2, 3])
     scalar_index = 1
     msg = "Expected indices to be array-like"
     with pytest.raises(TypeError, match=msg):
         integer_index.take(scalar_index)