polars-python 0.53.0

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

use crate::PyExpr;
use crate::expr::datatype::PyDataTypeExpr;

#[pymethods]
impl PyExpr {
    fn ext_storage(&self) -> Self {
        self.inner.clone().ext().storage().into()
    }

    fn ext_to(&self, dtype: PyDataTypeExpr) -> Self {
        self.inner.clone().ext().to(dtype.inner).into()
    }
}