def get_interesting_mapping_fields(mapping_data, mapping_headers):
 result = []
 num_samples = len(mapping_data)
 num_cols = len(mapping_headers)
 transposed_data = array(mapping_data).T
 for (header, datum) in zip(mapping_headers, transposed_data):
  d = set(datum)
  len_d = len(d)
  if ((len_d > 1) and (len_d < num_samples)):
   result.append(header)
 return result

def get_interesting_mapping_fields ( mapping_data , mapping_headers ) : result = [ ] num_samples = len ( mapping_data ) num_cols = len ( mapping_headers ) transposed_data = array ( mapping_data ) . T for ( header , datum ) in zip ( mapping_headers , transposed_data ) : d = set ( datum ) len_d = len ( d ) if ( ( len_d > 1 ) and ( len_d < num_samples ) ) : result . append ( header ) return result
returns headers for fields that are useful to color by in plots these fields are the ones that contain greater than one value and less values than the number of entries .