Metrics#
Metrics are scalar aggregations computed per numerical column when generating a
summary(). Pass them via the
metrics argument as a mapping from display label to a MetricFn
callable. diffly.metrics ships a set of presets; you can also supply
your own callable (left_expr, right_expr) -> pl.Expr.
- diffly.metrics.MetricFn#
A metric function maps
(left_expr, right_expr)to a scalar aggregation expression.The expressions refer to the left-side and right-side values of a single column across all joined rows.
alias of
Callable[[Expr,Expr],Expr]
Presets#
|
Mean of |
|
Median of |
|
Minimum of |
|
Maximum of |
|
Standard deviation of |
|
Mean of |
|
Mean of |
|
Factory returning a metric that computes the |