Skip to content

Instantly share code, notes, and snippets.

@ivanvoid
Created November 9, 2021 02:57
Show Gist options
  • Save ivanvoid/cb02fd2982932b1fbc90a9ed0652e066 to your computer and use it in GitHub Desktop.
Save ivanvoid/cb02fd2982932b1fbc90a9ed0652e066 to your computer and use it in GitHub Desktop.
dataframe shuffler
def shuffle(data):
data = data.iloc[np.random.permutation(len(data))]
data = data.reset_index(drop=True)
return data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment