daft.expressions.Expression
daft.expressions.Expression#
- class daft.expressions.Expression[source]#
-
Methods
__init__
()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, return_type])Apply a function on a given expression
apply_and_trickle_down
(rule)as_py
(type_)Treats every value on the given expression as an object of the specified type.
cast
(to)Casts an expression to a given type
has_call
()if_else
(if_true, if_false)Conditionally choose values between two expressions using the current LOGICAL expression as a condition
is_nan
()Checks if values are NaN (a special float value indicating not-a-number)
is_null
()Checks if values in the Expression are Null (a special value indicating missing data)
name
()post_order
()to_column_expression
()to_dot
()to_dot_file
([filename])to_field
(schema)Attributes
dt
Access methods that work on columns of datetimes
str
Access methods that work on columns of strings
url
Access methods that work on columns of URLs