Skip to main content

query_str

Function query_str 

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

Filter a DataFrame using a string expression.

Analogous to pandas.DataFrame.query(expr_str). Parses the string expression, evaluates it to a boolean mask, then filters the DataFrame.