def test_constructor_unsortable(self): arr = np.array([1, 2, 3, datetime.now()], dtype='O') # it works! factor = Categorical.from_array(arr)
def test_constructor_unsortable(self): arr = np.array([1, 2, 3, datetime.now()], dtype='O') # it works! factor = Categorical.from_array(arr)
def setUp(self): self.factor = Categorical.from_array( ['a', 'b', 'b', 'a', 'a', 'c', 'c', 'c'])
def setUp(self): self.factor = Categorical.from_array(['a', 'b', 'b', 'a', 'a', 'c', 'c', 'c'])