daft.expressions.Expression
daft.expressions.Expression#
- class daft.expressions.Expression[source]#
-
Methods
__init__
()abs
()Absolute of a numeric expression (
expr.abs()
)alias
(name)Gives the expression a new name, which is its column's name in the DataFrame schema and the name by which subsequent expressions can refer to the results of this expression.
apply
(func, return_dtype)Apply a function on each value in a given expression
cast
(dtype)Casts an expression to the given datatype if possible
if_else
(if_true, if_false)Conditionally choose values between two expressions using the current boolean expression as a condition
is_null
()Checks if values in the Expression are Null (a special value indicating missing data)
name
()udf
(func, expressions, return_dtype)Attributes
dt
Access methods that work on columns of datetimes
float
Access methods that work on columns of floats
image
Access methods that work on columns of images
str
Access methods that work on columns of strings
url
Access methods that work on columns of URLs