DataFrame.Head Method

Definition

Overloads

Head(Int32)

Returns the first n rows.

Head()

Returns the first row.

Head(Int32)

Returns the first n rows.

public System.Collections.Generic.IEnumerable<Microsoft.Spark.Sql.Row> Head (int n);
member this.Head : int -> seq<Microsoft.Spark.Sql.Row>
Public Function Head (n As Integer) As IEnumerable(Of Row)

Parameters

n
Int32

Number of rows

Returns

First n rows

Applies to

Head()

Returns the first row.

public Microsoft.Spark.Sql.Row Head ();
member this.Head : unit -> Microsoft.Spark.Sql.Row
Public Function Head () As Row

Returns

Row

First row

Applies to