@@ -631,18 +631,18 @@ def test_constructor(self):
631631
632632 # GH #8285, test when scalar data is used to construct a Panel4D
633633 # if dtype is not passed, it should be inferred
634- value_and_dtype = [(1 , int ), (3.14 , float ), ('foo' , np .object_ )]
634+ value_and_dtype = [(1 , 'int64' ), (3.14 , 'float64' ), ('foo' , np .object_ )]
635635 for (val , dtype ) in value_and_dtype :
636636 panel4d = Panel4D (val , labels = range (2 ), items = range (3 ), major_axis = range (4 ), minor_axis = range (5 ))
637637 vals = np .empty ((2 , 3 , 4 , 5 ), dtype = dtype )
638638 vals .fill (val )
639639 assert_panel4d_equal (panel4d , Panel4D (vals , dtype = dtype ))
640640
641641 # test the case when dtype is passed
642- panel4d = Panel4D (1 , labels = range (2 ), items = range (3 ), major_axis = range (4 ), minor_axis = range (5 ), dtype = float )
643- vals = np .empty ((2 , 3 , 4 , 5 ), dtype = float )
642+ panel4d = Panel4D (1 , labels = range (2 ), items = range (3 ), major_axis = range (4 ), minor_axis = range (5 ), dtype = 'float32' )
643+ vals = np .empty ((2 , 3 , 4 , 5 ), dtype = 'float32' )
644644 vals .fill (1 )
645- assert_panel4d_equal (panel4d , Panel4D (vals , dtype = float ))
645+ assert_panel4d_equal (panel4d , Panel4D (vals , dtype = 'float32' ))
646646
647647 def test_constructor_cast (self ):
648648 zero_filled = self .panel4d .fillna (0 )
0 commit comments