Skip to main content

eval_str

Function eval_str 

Source
pub fn eval_str(
    expr_str: &str,
    frame: &DataFrame,
    policy: &RuntimePolicy,
    ledger: &mut EvidenceLedger,
) -> Result<Series, ExprError>
Expand description

Evaluate a string expression against a DataFrame and return a Series.

Analogous to pandas.DataFrame.eval(expr_str). Parses the string expression and evaluates it using the DataFrame’s columns as variables.