def validate_column_specs(events, columns):
 required = required_estimates_fields(columns)
 received = set(events.columns)
 missing = (required - received)
 if missing:
  raise ValueError('EarningsEstimatesLoader missing required columns {missing}.\nGot Columns: {received}\nExpected Columns: {required}'.format(missing=sorted(missing), received=sorted(received), required=sorted(required)))

def validate_column_specs ( events , columns ) : required = required_estimates_fields ( columns ) received = set ( events . columns ) missing = ( required - received ) if missing : raise ValueError ( 'EarningsEstimatesLoader missing required columns {missing}.\nGot Columns: {received}\nExpected Columns: {required}' . format ( missing = sorted ( missing ) , received = sorted ( received ) , required = sorted ( required ) ) )
verify that the columns of events can be used by an eventsloader to serve the boundcolumns described by next_value_columns and previous_value_columns .