#NEWLINE# def table( self , datatype = None , **kwargs ) : #NEWLINE# #INDENT# 'Creates a table from the stored keys and data.' #NEWLINE# if ( datatype is None ) : #NEWLINE# #INDENT# datatype = [ ( 'dataframe' if pd else 'dictionary' ) ] #NEWLINE# #UNINDENT# tables = [ ] #NEWLINE# for ( key , value ) in self . data . items ( ) : #NEWLINE# #INDENT# value = value . table ( datatype = dim , ** kwargs ) #NEWLINE# for ( idx , ( dim , val ) ) in enumerate ( zip ( self . kdims , key ) ) : #NEWLINE# #INDENT# value = value . add_dimension ( dim , idx , val ) #NEWLINE# #UNINDENT# tables . append ( value ) #NEWLINE# #UNINDENT# return value . interface . concatenate ( tables )