#NEWLINE# def test_xs( self ) : #NEWLINE# #INDENT# l1 = self . panel4d . xs ( 'l1' , axis = 0 ) #NEWLINE# expected = l1 . panel4d [ 'l1' ] #NEWLINE# assert_panel_equal ( l1 , expected ) #NEWLINE# l1_view = self . panel4d . xs ( 'l1' , axis = 0 ) #NEWLINE# l1_view . values [ : ] = np . nan #NEWLINE# self . assertTrue ( np . isnan ( self . panel4d [ 'l1' ] . values ) . all ( ) ) #NEWLINE# self . panel4d [ 'strings' ] = 'foo' #NEWLINE# result = self . panel4d . xs ( 'D' , axis = 3 ) #NEWLINE# self . assertIsNotNone ( result . is_copy )