Skip to main content

eval_value_on_dataframe_with_locals

Function eval_value_on_dataframe_with_locals 

Source
pub fn eval_value_on_dataframe_with_locals(
    expr: &Expr,
    frame: &DataFrame,
    locals: &BTreeMap<String, Scalar>,
    policy: &RuntimePolicy,
    ledger: &mut EvidenceLedger,
) -> Result<EvalValue, ExprError>
Expand description

pandas’ DataFrame.eval (without an assignment) of a parsed expression: EvalValue::Scalar for one naming no column, evaluated once over a one-row anchor whatever the frame’s length, else EvalValue::Series.