SyntaxFix
Write A Post
Hire A Developer
Questions
AFAIK the simplest solution is:
df_shuffled = df.reindex(np.random.permutation(df.index))