Every retrieval and ranking system ends with "keep the ones above the cutoff". Boolean masking is how that is written in NumPy, and it is the single most useful indexing habit in the library.
Write rows_above(x, column, threshold).
x is a 2D array. column is a column index. Return the rows of x whose value in that column is strictly greater than threshold, in their original order, as a 2D array.
You have read the opening. The rest is free with a Bezen account, and no card is needed.
Behind the sign-in