Files
df-research/dataframe/docs/StardustDocs/topics/operations/utils/shuffle.md
2026-02-08 11:20:43 -10:00

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))