Functions.Avg 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
Avg(String) |
Returns the average of the values in a group. |
Avg(Column) |
Returns the average of the values in a group. |
Avg(String)
Returns the average of the values in a group.
public static Microsoft.Spark.Sql.Column Avg(string columnName);
static member Avg : string -> Microsoft.Spark.Sql.Column
Public Shared Function Avg (columnName As String) As Column
Parameters
- columnName
- String
Column name
Returns
Column object
Applies to
Avg(Column)
Returns the average of the values in a group.
public static Microsoft.Spark.Sql.Column Avg(Microsoft.Spark.Sql.Column column);
static member Avg : Microsoft.Spark.Sql.Column -> Microsoft.Spark.Sql.Column
Public Shared Function Avg (column As Column) As Column
Parameters
- column
- Column
Column to apply
Returns
Column object