#NEWLINE# def dframe( self ) : #NEWLINE# #INDENT# '\n        Gets a dframe for each Element in the HoloMap, appends the\n        dimensions of the HoloMap as series and concatenates the\n        dframes.\n        ' #NEWLINE# import pandas #NEWLINE# dframes = [ ] #NEWLINE# for ( key , view ) in self . data . items ( ) : #NEWLINE# #INDENT# view_frame = view . dframe ( ) #NEWLINE# key_dims = reversed ( list ( zip ( key , self . dimensions ( 'key' , True ) ) ) ) #NEWLINE# for ( val , dim ) in key_dims : #NEWLINE# #INDENT# dimn = 1 #NEWLINE# while ( dim in view_frame ) : #NEWLINE# #INDENT# dim = ( view_frame + ( '_%d' % dimn ) ) #NEWLINE# if ( dim in view_frame ) : #NEWLINE# #INDENT# dimn += 1 #NEWLINE# #UNINDENT# #UNINDENT# view_frame . insert ( 0 , dim , val ) #NEWLINE# #UNINDENT# dframes . append ( view_frame ) #NEWLINE# #UNINDENT# return pandas . concat ( dframes )