sklearn.utils
utils.shuffle
Shuffle arrays or sparse matrices in a consistent way.