#NEWLINE# @ property #NEWLINE# def shape( self ) : #NEWLINE# #INDENT# keys = self . keys ( ) #NEWLINE# if ( self . ndims == 1 ) : #NEWLINE# #INDENT# return ( len ( keys ) , 1 ) #NEWLINE# #UNINDENT# return ( len ( set ( ( k [ 0 ] for k in keys ) ) ) , len ( set ( ( k [ 1 ] for k in keys ) ) ) )