File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,17 @@ pub fn covar(y: PyExpr, x: PyExpr) -> PyExpr {
56
56
covar_samp ( y, x)
57
57
}
58
58
59
+ #[ pyfunction]
60
+ pub fn var_samp ( expression : PyExpr ) -> PyExpr {
61
+ functions_aggregate:: expr_fn:: var_sample ( expression. expr ) . into ( )
62
+ }
63
+
64
+ #[ pyfunction]
65
+ /// Alias for [`var_samp`]
66
+ pub fn var ( y : PyExpr ) -> PyExpr {
67
+ var_samp ( y)
68
+ }
69
+
59
70
#[ pyfunction]
60
71
fn in_list ( expr : PyExpr , value : Vec < PyExpr > , negated : bool ) -> PyExpr {
61
72
datafusion_expr:: in_list (
@@ -593,9 +604,7 @@ aggregate_function!(sum, Sum);
593
604
aggregate_function ! ( stddev, Stddev ) ;
594
605
aggregate_function ! ( stddev_pop, StddevPop ) ;
595
606
aggregate_function ! ( stddev_samp, Stddev ) ;
596
- aggregate_function ! ( var, Variance ) ;
597
607
aggregate_function ! ( var_pop, VariancePop ) ;
598
- aggregate_function ! ( var_samp, Variance ) ;
599
608
aggregate_function ! ( regr_avgx, RegrAvgx ) ;
600
609
aggregate_function ! ( regr_avgy, RegrAvgy ) ;
601
610
aggregate_function ! ( regr_count, RegrCount ) ;
You can’t perform that action at this time.
0 commit comments