DataFrame.GroupBy 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
GroupBy(String, String[]) |
Groups the DataFrame using the specified columns. |
GroupBy(Column[]) |
Groups the DataFrame using the specified columns, so we can run aggregation on them. |
GroupBy(String, String[])
Groups the DataFrame using the specified columns.
public Microsoft.Spark.Sql.RelationalGroupedDataset GroupBy (string column, params string[] columns);
member this.GroupBy : string * string[] -> Microsoft.Spark.Sql.RelationalGroupedDataset
Public Function GroupBy (column As String, ParamArray columns As String()) As RelationalGroupedDataset
Parameters
- column
- String
Column name
- columns
- String[]
Additional column names
Returns
RelationalGroupedDataset object
Applies to
GroupBy(Column[])
Groups the DataFrame using the specified columns, so we can run aggregation on them.
public Microsoft.Spark.Sql.RelationalGroupedDataset GroupBy (params Microsoft.Spark.Sql.Column[] columns);
member this.GroupBy : Microsoft.Spark.Sql.Column[] -> Microsoft.Spark.Sql.RelationalGroupedDataset
Public Function GroupBy (ParamArray columns As Column()) As RelationalGroupedDataset
Parameters
- columns
- Column[]
Column expressions
Returns
RelationalGroupedDataset object