polars_python/functions/business.rs
1use polars::lazy::dsl;
2use pyo3::prelude::*;
3
4use crate::PyExpr;
5
6#[pyfunction]
7pub 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}