1.0 KiB
Vendored
1.0 KiB
Vendored
shuffle
Discover `shuffle` operation in Kotlin Dataframe. Discover `shuffle` operation in Kotlin Dataframe. Discover `shuffle` operation in Kotlin Dataframe.Returns a new DataFrame with rows in random order.
You can supply a kotlin.random.Random instance with a fixed seed for reproducible results.
df.shuffle()
df.shuffle(random: Random)
Examples
df
Deterministic shuffle using a fixed seed:
df.shuffle(Random(42))