Boolean mask — keep rows where a condition is True. In a spreadsheet: “only trips after 6 p.m.”.
True
radius[y == 0] # malignant patients only radius[y == 1] # benign patients only
The mask is the same length as the axis it filters, and it is True exactly where you want to keep something.