We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f25ed commit 8a3a606Copy full SHA for 8a3a606
src/functions.rs
@@ -45,6 +45,11 @@ pub fn covar_pop(y: PyExpr, x: PyExpr) -> PyExpr {
45
functions_aggregate::expr_fn::covar_pop(y.expr, x.expr).into()
46
}
47
48
+#[pyfunction]
49
+pub fn median(arg: PyExpr) -> PyExpr {
50
+ functions_aggregate::expr_fn::median(arg.expr).into()
51
+}
52
+
53
#[pyfunction]
54
pub fn covar(y: PyExpr, x: PyExpr) -> PyExpr {
55
// alias for covar_samp
@@ -583,7 +588,6 @@ aggregate_function!(count, Count);
583
588
aggregate_function!(grouping, Grouping);
584
589
aggregate_function!(max, Max);
585
590
aggregate_function!(mean, Avg);
586
-aggregate_function!(median, Median);
587
591
aggregate_function!(min, Min);
592
aggregate_function!(sum, Sum);
593
aggregate_function!(stddev, Stddev);
0 commit comments