def get_grouped_distances(dist_matrix_header, dist_matrix, mapping_header, mapping, field, within=True, suppress_symmetry_and_hollowness_check=False):
 _validate_input(dist_matrix_header, dist_matrix, mapping_header, mapping, field)
 mapping_data = [mapping_header]
 mapping_data.extend(mapping)
 groups = group_by_field(mapping_data, field)
 return _get_groupings(dist_matrix_header, dist_matrix, groups, within, suppress_symmetry_and_hollowness_check)

def get_grouped_distances ( dist_matrix_header , dist_matrix , mapping_header , mapping , field , within = True , suppress_symmetry_and_hollowness_check = False ) : _validate_input ( dist_matrix_header , dist_matrix , mapping_header , mapping , field ) mapping_data = [ mapping_header ] mapping_data . extend ( mapping ) groups = group_by_field ( mapping_data , field ) return _get_groupings ( dist_matrix_header , dist_matrix , groups , within , suppress_symmetry_and_hollowness_check )
returns a list of distance groupings for the specified field .