Skip to main content

GroupedArray

Array made up of different groups. Can be thought of (and iterated) as a list of arrays. All the data is stored in a single 1d array data. The indices for the group boundaries are stored in another 1d array indptr.

GroupedArray.append

Appends each element of new_data to each existing group. Returns a copy.

GroupedArray.append_several

GroupedArray.apply_multithreaded_transforms

Apply the transformations using multithreading. If updates_only then only the updates are returned.

GroupedArray.apply_transforms

Apply the transformations using the main process. If updates_only then only the updates are returned.

GroupedArray.data

GroupedArray.expand_target

GroupedArray.indptr

GroupedArray.n_groups

GroupedArray.take

GroupedArray.take_from_groups

Takes idx from each group in the array.