Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-python/src/functions/utils.rs
7889 views
1
use polars::prelude::_set_check_length;
2
use polars_core::config::get_engine_affinity;
3
use pyo3::prelude::*;
4
5
#[pyfunction]
6
pub fn check_length(check: bool) {
7
unsafe { _set_check_length(check) }
8
}
9
10
#[pyfunction(name = "get_engine_affinity")]
11
pub fn py_get_engine_affinity() -> PyResult<String> {
12
Ok(get_engine_affinity())
13
}
14
15