Expressions

Vortex expressions represent simple filtering conditions on the rows of a Vortex array. For example, the following expression represents the set of rows for which the age column lies between 23 and 55:

>>> import vortex.expr
>>> age = vortex.expr.column("age")
>>> (23 > age) & (age < 55)  

column

Create an expression that refers to a column by its name.

Expr

An expression describes how to filter rows when reading an array from a file.


vortex.expr.column(name)

Create an expression that refers to a column by its name.

Parameters:

name (str) – The name of the column.

Return type:

vortex.Expr

Examples

>>> import vortex.expr as ve
>>> ve.column("age")
<vortex.Expr object at ...>
class vortex.expr.Expr

An expression describes how to filter rows when reading an array from a file.

See also

column()