jeudi 21 juillet 2022

Convert large dataset into a chunk of random sample

I have a large dataset of 100MB and want to make a chunk of random sample of 500 data. I tried using following but the data is being repeated?

di = sorted(random.sample(current,s))
data.append(di)



Aucun commentaire:

Enregistrer un commentaire