Share via


RelationalGroupedDataset.Pivot Method

Definition

Overloads

Pivot(Column)

Pivots a column of the current DataFrame and performs the specified aggregation.

Pivot(String)

Pivots a column of the current DataFrame and performs the specified aggregation.

Pivot(Column, IEnumerable<Object>)

Pivots a column of the current DataFrame and performs the specified aggregation.

Pivot(String, IEnumerable<Object>)

Pivots a column of the current DataFrame and performs the specified aggregation.

Pivot(Column)

Pivots a column of the current DataFrame and performs the specified aggregation.

public Microsoft.Spark.Sql.RelationalGroupedDataset Pivot (Microsoft.Spark.Sql.Column pivotColumn);
member this.Pivot : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.RelationalGroupedDataset
Public Function Pivot (pivotColumn As Column) As RelationalGroupedDataset

Parameters

pivotColumn
Column

The column to pivot

Returns

New RelationalGroupedDataset object with pivot applied

Applies to

Pivot(String)

Pivots a column of the current DataFrame and performs the specified aggregation.

public Microsoft.Spark.Sql.RelationalGroupedDataset Pivot (string pivotColumn);
member this.Pivot : string -> Microsoft.Spark.Sql.RelationalGroupedDataset
Public Function Pivot (pivotColumn As String) As RelationalGroupedDataset

Parameters

pivotColumn
String

Name of the column to pivot

Returns

New RelationalGroupedDataset object with pivot applied

Applies to

Pivot(Column, IEnumerable<Object>)

Pivots a column of the current DataFrame and performs the specified aggregation.

public Microsoft.Spark.Sql.RelationalGroupedDataset Pivot (Microsoft.Spark.Sql.Column pivotColumn, System.Collections.Generic.IEnumerable<object> values);
member this.Pivot : Microsoft.Spark.Sql.Column * seq<obj> -> Microsoft.Spark.Sql.RelationalGroupedDataset
Public Function Pivot (pivotColumn As Column, values As IEnumerable(Of Object)) As RelationalGroupedDataset

Parameters

pivotColumn
Column

The column to pivot of type Column

values
IEnumerable<Object>

List of values that will be translated to columns in the output DataFrame.

Returns

New RelationalGroupedDataset object with pivot applied

Applies to

Pivot(String, IEnumerable<Object>)

Pivots a column of the current DataFrame and performs the specified aggregation.

public Microsoft.Spark.Sql.RelationalGroupedDataset Pivot (string pivotColumn, System.Collections.Generic.IEnumerable<object> values);
member this.Pivot : string * seq<obj> -> Microsoft.Spark.Sql.RelationalGroupedDataset
Public Function Pivot (pivotColumn As String, values As IEnumerable(Of Object)) As RelationalGroupedDataset

Parameters

pivotColumn
String

Name of the column to pivot of type string

values
IEnumerable<Object>

List of values that will be translated to columns in the output DataFrame.

Returns

New RelationalGroupedDataset object with pivot applied

Applies to