title: PySpark: Randomize rows in dataframe
body: <p>I have a dataframe and I want to randomize rows in the dataframe. I tried sampling the data by giving a fraction of 1, which didn't work (interestingly this works in Pandas).</p>