Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-plan/src/dsl/functions/business.rs
6940 views
1
use super::*;
2
3
#[cfg(feature = "dtype-date")]
4
pub fn business_day_count(
5
start: Expr,
6
end: Expr,
7
week_mask: [bool; 7],
8
holidays: Vec<i32>,
9
) -> Expr {
10
let input = vec![start, end];
11
12
Expr::Function {
13
input,
14
function: FunctionExpr::Business(BusinessFunction::BusinessDayCount {
15
week_mask,
16
holidays,
17
}),
18
}
19
}
20
21