Hi, I'd like to select the rows of 'data' for which the corresponding
elements in 'target' is not 2. Could anybody let know what is the best
way (with the least code) to do conditional subsetting like this with
numpy objects? Thanks.

from sklearn import datasets
data, target = datasets.load_iris()

-- 
Regards,
Peng
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@python.org
https://mail.python.org/mailman/listinfo/numpy-discussion

Reply via email to