Computes the absolutle value.
Aggregate function: returns the approximate number of distinct items in a group.
Aggregate function: returns the approximate number of distinct items in a group.
Aggregate function: returns the approximate number of distinct items in a group.
Aggregate function: returns the approximate number of distinct items in a group.
Returns a sort expression based on ascending order of the column.
Returns a sort expression based on ascending order of the column. {{ // Sort by dept in ascending order, and then age in descending order. df.sort(asc("dept"), desc("age")) }}
Aggregate function: returns the average of the values in a group.
Aggregate function: returns the average of the values in a group.
Call a Scala function of 10 arguments as user-defined function (UDF).
Call a Scala function of 10 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 9 arguments as user-defined function (UDF).
Call a Scala function of 9 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 8 arguments as user-defined function (UDF).
Call a Scala function of 8 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 7 arguments as user-defined function (UDF).
Call a Scala function of 7 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 6 arguments as user-defined function (UDF).
Call a Scala function of 6 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 5 arguments as user-defined function (UDF).
Call a Scala function of 5 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 4 arguments as user-defined function (UDF).
Call a Scala function of 4 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 3 arguments as user-defined function (UDF).
Call a Scala function of 3 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 2 arguments as user-defined function (UDF).
Call a Scala function of 2 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 1 arguments as user-defined function (UDF).
Call a Scala function of 1 arguments as user-defined function (UDF). This requires you to specify the return data type.
Call a Scala function of 0 arguments as user-defined function (UDF).
Call a Scala function of 0 arguments as user-defined function (UDF). This requires you to specify the return data type.
Returns the first column that is not null.
Returns the first column that is not null.
df.select(coalesce(df("a"), df("b")))
Returns a Column based on the given column name.
Returns a Column based on the given column name.
Aggregate function: returns the number of items in a group.
Aggregate function: returns the number of items in a group.
Aggregate function: returns the number of distinct items in a group.
Aggregate function: returns the number of distinct items in a group.
Aggregate function: returns the number of distinct items in a group.
Aggregate function: returns the number of distinct items in a group.
Returns a sort expression based on the descending order of the column.
Returns a sort expression based on the descending order of the column. {{ // Sort by dept in ascending order, and then age in descending order. df.sort(asc("dept"), desc("age")) }}
Aggregate function: returns the first value of a column in a group.
Aggregate function: returns the first value in a group.
Aggregate function: returns the last value of the column in a group.
Aggregate function: returns the last value in a group.
Creates a Column of literal value.
Converts a string exprsesion to lower case.
Aggregate function: returns the maximum value of the column in a group.
Aggregate function: returns the maximum value of the expression in a group.
Aggregate function: returns the minimum value of the column in a group.
Aggregate function: returns the minimum value of the expression in a group.
Unary minus, i.
Unary minus, i.e. negate the expression.
// Select the amount column and negates all values. // Scala: df.select( -df("amount") ) // Java: df.select( negate(df.col("amount")) );
Inversion of boolean expression, i.
Inversion of boolean expression, i.e. NOT. {{ // Scala: select rows that are not active (isActive === false) df.filter( !df("isActive") )
// Java: df.filter( not(df.col("isActive")) ); }}
Computes the square root of the specified float value.
Aggregate function: returns the sum of all values in the given column.
Aggregate function: returns the sum of all values in the expression.
Aggregate function: returns the sum of distinct values in the expression.
Aggregate function: returns the sum of distinct values in the expression.
Defines a user-defined function of 10 arguments as user-defined function (UDF).
Defines a user-defined function of 10 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 9 arguments as user-defined function (UDF).
Defines a user-defined function of 9 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 8 arguments as user-defined function (UDF).
Defines a user-defined function of 8 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 7 arguments as user-defined function (UDF).
Defines a user-defined function of 7 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 6 arguments as user-defined function (UDF).
Defines a user-defined function of 6 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 5 arguments as user-defined function (UDF).
Defines a user-defined function of 5 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 4 arguments as user-defined function (UDF).
Defines a user-defined function of 4 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 3 arguments as user-defined function (UDF).
Defines a user-defined function of 3 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 2 arguments as user-defined function (UDF).
Defines a user-defined function of 2 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 1 arguments as user-defined function (UDF).
Defines a user-defined function of 1 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Defines a user-defined function of 0 arguments as user-defined function (UDF).
Defines a user-defined function of 0 arguments as user-defined function (UDF). The data types are automatically inferred based on the function's signature.
Converts a string expression to upper case.
:: Experimental :: Functions available for DataFrame.