def get_yaml_from_table(table):
 header = {'cols': list(six.itervalues(table.columns))}
 if table.meta:
  header['meta'] = table.meta
 return get_yaml_from_header(header)

def get_yaml_from_table ( table ) : header = { 'cols' : list ( six . itervalues ( table . columns ) ) } if table . meta : header [ 'meta' ] = table . meta return get_yaml_from_header ( header )
return lines with a yaml representation of header content from the table .