zcollection.dataset.Expression#

class zcollection.dataset.Expression(expression)[source]#

Bases: object

Partitioning expressions.

Parameters:

expression (str) – The expression to be evaluated

Raises:

NameError – If a variable is not defined.

Example

>>> expr = Expression("a + b * sin(c)")

Attributes

code

Compiled expression to be evaluated

BUILTINS

The builtins that are allowed in the expression.

Special Methods

__call__(zds)

Call self as a function.

__dataclass_fields__

__dataclass_params__

__eq__(other)

Return self==value.

__match_args__

__repr__()

Return repr(self).