barak.utilities.indgroupby¶
- barak.utilities.indgroupby(a, name)[source]¶
Find the indices giving rows in a that have common values for the field name.
Parameters : a : structured array
Find the indices for rows in this array.
name : str
Field of a.
Returns : unique_vals, indices: :
unique sorted values of a[name], and a list of indices into a giving the rows with each unique value.