#NEWLINE# def drop_dimension( self , dimensions ) : #NEWLINE# #INDENT# '\n        Returns a new mapping with the named dimension(s) removed.\n        ' #NEWLINE# dimensions = ( [ dimensions ] if np . isscalar ( dimensions ) else dimensions ) #NEWLINE# dims = [ d for d in self . kdims if ( d not in dimensions ) ] #NEWLINE# dim_inds = [ self . get_dimension_index ( d ) for d in dims ] #NEWLINE# key_getter = itemgetter ( * d ) #NEWLINE# return self . clone ( [ ( key_getter ( k ) , v ) for ( k , v ) in self . data . items ( ) ] , kdims = dims )