SyntaxFix
Write A Post
Hire A Developer
Questions
Here is a work around I found if you want to only shuffle a subset of the DataFrame:
shuffle_to_index = 20 df = pd.concat([df.iloc[np.random.permutation(range(shuffle_to_index))], df.iloc[shuffle_to_index:]])