SyntaxFix
Write A Post
Hire A Developer
Questions
If you need the same rows but just a random sample then,
import random new_array = random.sample(old_array,x)
Here x, has to be an 'int' defining the number of rows you want to randomly pick.