Answers for "how to shuffle dataset in python"

8

shuffle dataframe python

df = df.sample(frac=1).reset_index(drop=True)
Posted by: Guest on November-26-2019
21

python randomize list

import random

random.shuffle(list)
Posted by: Guest on May-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language