RelationalGroupedDataset.Pivot 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.
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
- 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