DataFrame.Sample(Double, Boolean, Nullable<Int64>) Methode

Definition

Gibt einen neuen DataFrame zurück, indem ein Teil der Zeilen (ohne Ersatz) mithilfe eines vom Benutzer bereitgestellten Seeds stichprobeniert wird.

public Microsoft.Spark.Sql.DataFrame Sample(double fraction, bool withReplacement = false, long? seed = default);
member this.Sample : double * bool * Nullable<int64> -> Microsoft.Spark.Sql.DataFrame
Public Function Sample (fraction As Double, Optional withReplacement As Boolean = false, Optional seed As Nullable(Of Long) = Nothing) As DataFrame

Parameter

fraction
Double

Bruch der Zeilen

withReplacement
Boolean

Beispiel mit Ersatz oder nicht

seed
Nullable<Int64>

Optionaler Zufälliger Seed

Gibt zurück

DataFrame-Objekt

Gilt für: