Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-python/src/functions/business.rs
8393 views
1
use pyo3::prelude::*;
2
3
use crate::PyExpr;
4
5
#[pyfunction]
6
pub fn business_day_count(
7
start: PyExpr,
8
end: PyExpr,
9
week_mask: [bool; 7],
10
holidays: Vec<i32>,
11
) -> PyExpr {
12
let start = start.inner;
13
let end = end.inner;
14
polars_plan::dsl::functions::business_day_count(start, end, week_mask, holidays).into()
15
}
16
17