Exemplo n.º 1
0
    def test_take_nd_deprecated(self):
        cat = Categorical(["a", "b", "c"])
        with tm.assert_produces_warning(FutureWarning):
            cat.take_nd([0, 1])

        ci = Index(cat)
        with tm.assert_produces_warning(FutureWarning):
            ci.take_nd([0, 1])