gustaf.utils.arr.select_with_ranges#

gustaf.utils.arr.select_with_ranges(arr, ranges)[source]#

Select array with ranges of each column. Always parsed as:

[[greater_than, less_than], [….], …]

Parameters:

ranges ((d, 2) array-like) – Takes None.

Returns:

ids

Return type:

(n,) np.ndarray