#NEWLINE# def test_setitem( self ) : #NEWLINE# #INDENT# p = Panel ( dict ( ItemA = self . panel4d [ 'l1' ] [ 'ItemA' ] [ 2 : ] . filter ( items = [ 'A' , 'B' ] ) ) ) #NEWLINE# self . panel4d [ 'l4' ] = p #NEWLINE# self . panel4d [ 'l5' ] = p #NEWLINE# p2 = self . panel4d [ 'l4' ] #NEWLINE# assert_panel_equal ( self , p2 . reindex ( items = p . items , major_axis = p . major_axis , minor_axis = p . minor_axis ) ) #NEWLINE# self . panel4d [ 'lG' ] = 1 #NEWLINE# self . panel4d [ 'lE' ] = True #NEWLINE# self . assertEqual ( self . panel4d [ 'lG' ] . values . dtype , np . int64 ) #NEWLINE# self . assertEqual ( self . panel4d [ 'lE' ] . values . dtype , np . bool_ ) #NEWLINE# self . panel4d [ 'lQ' ] = 'foo' #NEWLINE# self . assertEqual ( self . panel4d [ 'lQ' ] . values . dtype , np . object_ ) #NEWLINE# self . panel4d [ 'lP' ] = ( self . panel4d [ 'l1' ] > 0 ) #NEWLINE# self . assertEqual ( self . panel4d [ 'lP' ] . values . dtype , np . bool_ )