DataFrame.RandomSplit(Double[], Nullable<Int64>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
DataFrame object