Struct polars_plan::dsl::StructNameSpace
source · pub struct StructNameSpace(/* private fields */);
Available on crate feature
dtype-struct
only.Expand description
Specialized expressions for Struct dtypes.
Implementations§
source§impl StructNameSpace
impl StructNameSpace
pub fn field_by_index(self, index: i64) -> Expr
sourcepub fn field_by_names<S: AsRef<str>>(self, names: &[S]) -> Expr
pub fn field_by_names<S: AsRef<str>>(self, names: &[S]) -> Expr
Retrieve one or multiple of the fields of this StructChunked
as a new Series.
This expression also expands the "*"
wildcard column.
sourcepub fn field_by_name(self, name: &str) -> Expr
pub fn field_by_name(self, name: &str) -> Expr
Retrieve one of the fields of this StructChunked
as a new Series.
This expression also supports wildcard “*” and regex expansion.
sourcepub fn rename_fields(self, names: Vec<String>) -> Expr
pub fn rename_fields(self, names: Vec<String>) -> Expr
Rename the fields of the StructChunked
.
pub fn json_encode(self) -> Expr
Available on crate feature
json
only.pub fn with_fields(self, fields: Vec<Expr>) -> Expr
Auto Trait Implementations§
impl Freeze for StructNameSpace
impl !RefUnwindSafe for StructNameSpace
impl Send for StructNameSpace
impl Sync for StructNameSpace
impl Unpin for StructNameSpace
impl !UnwindSafe for StructNameSpace
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> 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