pyarrow.dataset.Expression¶
-
class
pyarrow.dataset.
Expression
¶ Bases:
pyarrow.lib._Weakrefable
-
__init__
(*args, **kwargs)¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(*args, **kwargs)Initialize self.
Simplify to an equivalent Expression given assumed constraints.
Explicitly change the expression’s data type
Checks whether the expression is not-null (valid)
Checks whether the expression is contained in values
Validate this expression for execution against a schema.
-
assume
()¶ Simplify to an equivalent Expression given assumed constraints.
-
cast
()¶ Explicitly change the expression’s data type
-
equals
()¶
-
is_valid
()¶ Checks whether the expression is not-null (valid)
-
isin
()¶ Checks whether the expression is contained in values
-
validate
()¶ Validate this expression for execution against a schema.
This will check that all reference fields are present (fields not in the schema will be replaced with null) and all subexpressions are executable. Returns the type to which this expression will evaluate.
- Parameters
schema (Schema) – Schema to execute the expression on.
- Returns
type (DataType)
-