What do you mean remove them from the array? Replace with zero or NaN? On May 16, 2016 9:08 AM, "Florian Lindner" <mailingli...@xgm.de> wrote:
> Hello, > > I have an array of shape (n, 2) from which I want to extract a random > sample > of 20% of rows. The choosen samples should be removed the original array > and > moved to a new array of the same shape (n, 2). > > What is the most clever way to do with numpy? > > Thanks, > Florian > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > https://mail.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion