diff --git a/crates/polars-expr/src/reduce/mean.rs b/crates/polars-expr/src/reduce/mean.rs index 6485a957c0b9..0caa2ccabcb8 100644 --- a/crates/polars-expr/src/reduce/mean.rs +++ b/crates/polars-expr/src/reduce/mean.rs @@ -46,6 +46,7 @@ fn finish_output(values: Vec<(f64, usize)>, dtype: &DataType) -> Series { .collect_ca(PlSmallStr::EMPTY); ca.into_series() }, + #[cfg(feature = "dtype-datetime")] DataType::Date => { const MS_IN_DAY: i64 = 86_400_000; let ca: Int64Chunked = values