shuffle

fun <T> DataColumn<T>.shuffle(random: Random): DataColumn<T>

Returns a new DataColumn with the same values in random order using the provided random source.

For more information: See shuffle on the documentation website.

Return

A new DataColumn with values reordered randomly.

Parameters

random

Source of randomness to ensure reproducible shuffles when needed.


Returns a new DataColumn with values in random order using the default randomness.

For more information: See shuffle on the documentation website.

Return

A new DataColumn with values reordered randomly.


fun <T> DataFrame<T>.shuffle(random: Random): DataFrame<T>

Returns a new DataFrame with rows reordered randomly using the provided random source.

For more information: See shuffle on the documentation website.

Return

A new DataFrame with rows in random order.

Parameters

random

Source of randomness to ensure reproducible shuffles when needed.


Returns a new DataFrame with rows in random order using the default randomness.

For more information: See shuffle on the documentation website.

Return

A new DataFrame with rows in random order.