Sha256: 917e750ca6bd29642a17b0cf9de2b900b56e33db6b92e99141d3e2bb0e49e405
Contents?: true
Size: 985 Bytes
Versions: 3
Compression:
Stored size: 985 Bytes
Contents
use crate::{RArray, RbExpr, RbPolarsErr, RbResult}; impl RbExpr { pub fn meta_pop(&self) -> RArray { RArray::from_iter( self.inner .clone() .meta() .pop() .into_iter() .map(RbExpr::from), ) } pub fn meta_eq(&self, other: &RbExpr) -> bool { self.inner == other.inner } pub fn meta_roots(&self) -> Vec<String> { self.inner .clone() .meta() .root_names() .iter() .map(|name| name.to_string()) .collect() } pub fn meta_output_name(&self) -> RbResult<String> { let name = self .inner .clone() .meta() .output_name() .map_err(RbPolarsErr::from)?; Ok(name.to_string()) } pub fn meta_undo_aliases(&self) -> RbExpr { self.inner.clone().meta().undo_aliases().into() } }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
polars-df-0.4.0 | ext/polars/src/lazy/meta.rs |
polars-df-0.3.1 | ext/polars/src/lazy/meta.rs |
polars-df-0.3.0 | ext/polars/src/lazy/meta.rs |