mag_aware_eval¶
- lsst.pipe.tasks.functors.mag_aware_eval(df, expr, log)¶
Evaluate an expression on a DataFrame, knowing what the ‘mag’ function means.
Builds on
pandas.DataFrame.eval
, which parses and executes math on DataFrames.- Parameters:
- df~pandas.DataFrame
DataFrame on which to evaluate expression.
- exprstr
Expression.