Exemplo n.º 1
0
    def test_constructor_unsortable(self):
        arr = np.array([1, 2, 3, datetime.now()], dtype='O')

        # it works!
        factor = Categorical.from_array(arr)
Exemplo n.º 2
0
    def test_constructor_unsortable(self):
        arr = np.array([1, 2, 3, datetime.now()], dtype='O')

        # it works!
        factor = Categorical.from_array(arr)
Exemplo n.º 3
0
 def setUp(self):
     self.factor = Categorical.from_array(
         ['a', 'b', 'b', 'a', 'a', 'c', 'c', 'c'])
Exemplo n.º 4
0
 def setUp(self):
     self.factor = Categorical.from_array(['a', 'b', 'b', 'a',
                                      'a', 'c', 'c', 'c'])