#NEWLINE# def _table_drop( self , fields ) : #NEWLINE# #INDENT# if ( len ( fields ) == 0 ) : #NEWLINE# #INDENT# return self #NEWLINE# #UNINDENT# fields = set ( fields ) #NEWLINE# to_project = [ ] #NEWLINE# for name in self . schema ( ) : #NEWLINE# #INDENT# if ( name in fields ) : #NEWLINE# #INDENT# fields . remove ( name ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# to_project . append ( name ) #NEWLINE# #UNINDENT# #UNINDENT# if ( len ( fields ) > 0 ) : #NEWLINE# #INDENT# raise KeyError ( 'Fields not in table: {0!s}' . format ( fields ) ) #NEWLINE# #UNINDENT# return self . projection ( to_project )