Share via


DataFrame.RandomSplit(Double[], Nullable<Int64>) Method

Definition

Randomly splits this DataFrame with the provided weights.

public Microsoft.Spark.Sql.DataFrame[] RandomSplit (double[] weights, long? seed = default);
member this.RandomSplit : double[] * Nullable<int64> -> Microsoft.Spark.Sql.DataFrame[]
Public Function RandomSplit (weights As Double(), Optional seed As Nullable(Of Long) = Nothing) As DataFrame()

Parameters

weights
Double[]

Weights for splits

seed
Nullable<Int64>

Optional random seed

Returns

DataFrame object

Applies to