Struct MetaNameSpace
pub struct MetaNameSpace(/* private fields */);
Expand description
Specialized expressions for Categorical dtypes.
Implementations§
§impl MetaNameSpace
impl MetaNameSpace
pub fn pop(self) -> Result<Vec<Expr>, PolarsError>
pub fn pop(self) -> Result<Vec<Expr>, PolarsError>
Pop latest expression and return the input(s) of the popped expression.
pub fn root_names(&self) -> Vec<PlSmallStr>
pub fn root_names(&self) -> Vec<PlSmallStr>
Get the root column names.
pub fn is_simple_projection(&self) -> bool
pub fn is_simple_projection(&self) -> bool
A projection that only takes a column or a column + alias.
pub fn output_name(&self) -> Result<PlSmallStr, PolarsError>
pub fn output_name(&self) -> Result<PlSmallStr, PolarsError>
Get the output name of this expression.
pub fn undo_aliases(self) -> Expr
pub fn undo_aliases(self) -> Expr
Undo any renaming operation like alias
, keep_name
.
pub fn has_multiple_outputs(&self) -> bool
pub fn has_multiple_outputs(&self) -> bool
Indicate if this expression expands to multiple expressions.
pub fn is_column_selection(&self, allow_aliasing: bool) -> bool
pub fn is_column_selection(&self, allow_aliasing: bool) -> bool
Indicate if this expression only selects columns; the presence of any
transform operations will cause the check to return false
, though
aliasing of the selected columns is optionally allowed.
pub fn is_literal(&self, allow_aliasing: bool) -> bool
pub fn is_literal(&self, allow_aliasing: bool) -> bool
Indicate if this expression represents a literal value (optionally aliased).
pub fn is_regex_projection(&self) -> bool
pub fn is_regex_projection(&self) -> bool
Indicate if this expression expands to multiple expressions with regex expansion.
pub fn _selector_add(self, other: Expr) -> Result<Expr, PolarsError>
pub fn _selector_and(self, other: Expr) -> Result<Expr, PolarsError>
pub fn _selector_sub(self, other: Expr) -> Result<Expr, PolarsError>
pub fn _selector_xor(self, other: Expr) -> Result<Expr, PolarsError>
pub fn _into_selector(self) -> Expr
pub fn into_tree_formatter(
self,
display_as_dot: bool,
) -> Result<impl Display, PolarsError>
pub fn into_tree_formatter( self, display_as_dot: bool, ) -> Result<impl Display, PolarsError>
Get a hold to an implementor of the Display
trait that will format as
the expression as a tree
Auto Trait Implementations§
impl !Freeze for MetaNameSpace
impl !RefUnwindSafe for MetaNameSpace
impl Send for MetaNameSpace
impl Sync for MetaNameSpace
impl Unpin for MetaNameSpace
impl !UnwindSafe for MetaNameSpace
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more