#NEWLINE# def test_stack_sparse_frame( self ) : #NEWLINE# #INDENT# def _check( frame ) : #NEWLINE# #INDENT# dense_frame = frame . to_dense ( ) #NEWLINE# wp = Panel . from_dict ( { #NEWLINE# #INDENT# 'foo' : frame , #NEWLINE# #UNINDENT# } ) #NEWLINE# from_dense_lp = wp . to_frame ( ) #NEWLINE# from_sparse_lp = spf . stack_sparse_frame ( frame ) #NEWLINE# self . assert_numpy_array_equal ( from_dense_lp . values , from_sparse_lp . values ) #NEWLINE# #UNINDENT# _check ( self . frame ) #NEWLINE# _check ( self . iframe ) #NEWLINE# self . assertRaises ( Exception , _check , self . zframe ) #NEWLINE# self . assertRaises ( Exception , _check , self . fill_frame )