示例#1
0
    def test_constructor_unsortable(self):
        arr = np.array([1, 2, 3, datetime.now()], dtype='O')

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

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