@expect_dimensions(array=2)
def permute_rows(seed, array):
    rand = np.random.RandomState(seed)
    return np.apply_along_axis(rand.permutation, 1, array)
Shuffle each row in ``array`` based on permutations generated by ``seed``.
dataset/ETHPy150Open quantopian/zipline/zipline/testing/core.py/permute_rows