polars-python 0.54.4

Enable running Polars workloads in Python
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use pyo3::prelude::*;

use crate::PyExpr;

#[pyfunction]
pub fn business_day_count(
    start: PyExpr,
    end: PyExpr,
    week_mask: [bool; 7],
    holidays: PyExpr,
) -> PyExpr {
    let start = start.inner;
    let end = end.inner;
    let holidays = holidays.inner;
    polars_plan::dsl::functions::business_day_count(start, end, week_mask, holidays).into()
}