Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas shuffle rows

df = df.sample(frac=1).reset_index(drop=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #shuffle #rows
ADD COMMENT
Topic
Name
5+1 =