Relative Content

Tag Archive for numpynumpy-ndarrayshuffle

why is numpy shuffle not working in a loop?

Thanks very much in advance.
I have a numpy array called X_test
X_test.shape
(11829, 16, 9)
I am trying to shuffle the 2nd column of each element of the array with the code below. However, X_test_s does not appear to be shuffled and I can’t work out why.