Sha256: 9ccfd7acd56ca47d2676411dd97141d10b4cd680d9b3214b513f9bdc44dd8a96
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
mod binary; mod categorical; mod datetime; mod general; mod list; mod meta; mod string; mod r#struct; use magnus::RArray; use polars::lazy::dsl::Expr; use crate::RbResult; #[magnus::wrap(class = "Polars::RbExpr")] #[derive(Clone)] pub struct RbExpr { pub inner: Expr, } impl From<Expr> for RbExpr { fn from(inner: Expr) -> Self { RbExpr { inner } } } pub fn rb_exprs_to_exprs(rb_exprs: RArray) -> RbResult<Vec<Expr>> { let mut exprs = Vec::new(); for item in rb_exprs.each() { exprs.push(item?.try_convert::<&RbExpr>()?.inner.clone()); } Ok(exprs) }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polars-df-0.5.0 | ext/polars/src/expr.rs |