I have a very large 2D array which looks something like this:
a= [[a1, b1, c1], [a2, b2, c2], ..., [an, bn, cn]]
Using numpy, is there a
This is an old post, but this is what works best for me:
A[np.random.choice(A.shape[0], num_rows_2_sample, replace=False)]
change the replace=False to True to get the same thing, but with replacement.