How to shuffle two NumPy arrays in unision in Python Use numpy.random.permutation() Use sklearn.utils.shuffle()