terms.call_resolver.LazyVariable
terms.call_resolver.LazyVariable(name)Deferred variable reference.
The variable represented in this object does not hold any value until it is explicitly evaluated within a data mask and an evaluation environment.
Parameters
name : str-
The name of the variable it represents.
Methods
| Name | Description |
|---|---|
| eval | Evaluates variable. |
eval
terms.call_resolver.LazyVariable.eval(data_mask, env)Evaluates variable.
First it looks for the variable in data_mask. If not found there, it looks in env. Then it just returns the value the variable represents in either the data mask or the evaluation environment.
Parameters
data_mask :pd.DataFrame-
The data frame where variables are taken from
env :Environment-
The environment where values and functions are taken from.
Returns
result :-
The value represented by this name in either the data mask or the environment.