Skip to content

Instantly share code, notes, and snippets.

@vidit0210
Created February 24, 2020 14:47
Show Gist options
  • Save vidit0210/99734086299093e5dff39d1e137a5145 to your computer and use it in GitHub Desktop.
Save vidit0210/99734086299093e5dff39d1e137a5145 to your computer and use it in GitHub Desktop.
np.random.seed(5)
l=list(df.index)
np.random_shuffle(l)
df = df.iloc[l]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment