pub struct MetaNameSpace(/* private fields */);
meta
only.Expand description
Specialized expressions for Categorical dtypes.
Implementations§
Source§impl MetaNameSpace
impl MetaNameSpace
Sourcepub fn pop(self) -> PolarsResult<Vec<Expr>>
pub fn pop(self) -> PolarsResult<Vec<Expr>>
Pop latest expression and return the input(s) of the popped expression.
Sourcepub fn root_names(&self) -> Vec<PlSmallStr>
pub fn root_names(&self) -> Vec<PlSmallStr>
Get the root column names.
Sourcepub fn is_simple_projection(&self) -> bool
pub fn is_simple_projection(&self) -> bool
A projection that only takes a column or a column + alias.
Sourcepub fn output_name(&self) -> PolarsResult<PlSmallStr>
pub fn output_name(&self) -> PolarsResult<PlSmallStr>
Get the output name of this expression.
Sourcepub fn undo_aliases(self) -> Expr
pub fn undo_aliases(self) -> Expr
Undo any renaming operation like alias
, keep_name
.
Sourcepub fn has_multiple_outputs(&self) -> bool
pub fn has_multiple_outputs(&self) -> bool
Indicate if this expression expands to multiple expressions.
Sourcepub 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.
Sourcepub 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).
Sourcepub 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) -> PolarsResult<Expr>
pub fn _selector_and(self, other: Expr) -> PolarsResult<Expr>
pub fn _selector_sub(self, other: Expr) -> PolarsResult<Expr>
pub fn _selector_xor(self, other: Expr) -> PolarsResult<Expr>
pub fn _into_selector(self) -> Expr
Sourcepub fn into_tree_formatter(
self,
display_as_dot: bool,
) -> PolarsResult<impl Display>
pub fn into_tree_formatter( self, display_as_dot: bool, ) -> PolarsResult<impl Display>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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