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
7889 views
1
use polars::lazy::dsl;
2
use pyo3::prelude::*;
3
4
use crate::PyExpr;
5
6
#[pyfunction]
7
pub fn business_day_count(
8
start: PyExpr,
9
end: PyExpr,
10
week_mask: [bool; 7],
11
holidays: Vec<i32>,
12
) -> PyExpr {
13
let start = start.inner;
14
let end = end.inner;
15
dsl::business_day_count(start, end, week_mask, holidays).into()
16
}
17
18