spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cesar Flores <>
Subject Dataframe random permutation?
Date Mon, 01 Jun 2015 19:49:32 GMT
I would like to know what will be the best approach to randomly permute a
Data Frame. I have tried:


where x is the seed. However, it gives the same result no matter the value
of x (it only gives different values when the fraction is smaller than 1.0)
. I have tried also:


which appears to be a random permutation. Can some one confirm me that the
last line is in fact a random permutation, or point me out to a better

Cesar Flores

View raw message