pub struct MetaNameSpace(/* private fields */);
Expand description
Specialized expressions for Categorical dtypes.
Implementations§
Source§impl MetaNameSpace
impl MetaNameSpace
Sourcepub 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.
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) -> Result<PlSmallStr, PolarsError>
pub fn output_name(&self) -> Result<PlSmallStr, PolarsError>
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_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
Sourcepub fn into_tree_formatter(self) -> Result<impl Display, PolarsError>
pub fn into_tree_formatter(self) -> 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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