コード例 #1
0
ファイル: test_factor.py プロジェクト: zkluo1/pandas
    def test_constructor_unsortable(self):
        arr = np.array([1, 2, 3, datetime.now()], dtype='O')

        # it works!
        factor = Categorical.from_array(arr)
コード例 #2
0
ファイル: test_factor.py プロジェクト: zkluo1/pandas
    def test_constructor_unsortable(self):
        arr = np.array([1, 2, 3, datetime.now()], dtype='O')

        # it works!
        factor = Categorical.from_array(arr)
コード例 #3
0
ファイル: test_factor.py プロジェクト: zkluo1/pandas
 def setUp(self):
     self.factor = Categorical.from_array(
         ['a', 'b', 'b', 'a', 'a', 'c', 'c', 'c'])
コード例 #4
0
ファイル: test_factor.py プロジェクト: zkluo1/pandas
 def setUp(self):
     self.factor = Categorical.from_array(['a', 'b', 'b', 'a',
                                      'a', 'c', 'c', 'c'])