Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/crates/polars-python/src/expr/extension.rs
7889 views
1
use pyo3::prelude::*;
2
3
use crate::PyExpr;
4
use crate::expr::datatype::PyDataTypeExpr;
5
6
#[pymethods]
7
impl PyExpr {
8
fn ext_storage(&self) -> Self {
9
self.inner.clone().ext().storage().into()
10
}
11
12
fn ext_to(&self, dtype: PyDataTypeExpr) -> Self {
13
self.inner.clone().ext().to(dtype.inner).into()
14
}
15
}
16
17