Skip to main content

polars_python/functions/
business.rs

1use pyo3::prelude::*;
2
3use crate::PyExpr;
4
5#[pyfunction]
6pub 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}