#NEWLINE# def test_columns_collapse_heterogeneous( self ) : #NEWLINE# #INDENT# collapsed = HoloMap ( { i : Dataset ( { #NEWLINE# #INDENT# 'x' : self . xs , #NEWLINE# 'y' : ( self . ys * i ) , #NEWLINE# #UNINDENT# } , kdims = [ 'x' ] , vdims = [ 'y' ] ) for i in range ( 10 ) } , kdims = [ 'z' ] ) . collapse ( 'z' , np . mean ) #NEWLINE# expected = Dataset ( { #NEWLINE# #INDENT# 'x' : self . xs , #NEWLINE# 'y' : ( self . ys * 4.5 ) , #NEWLINE# #UNINDENT# } , kdims = [ 'x' ] , vdims = [ 'y' ] ) #NEWLINE# self . compare_dataset ( expected , expected )