Struct polars_lazy::dsl::StructNameSpace
pub struct StructNameSpace(/* private fields */);
Expand description
Specialized expressions for Struct dtypes.
Implementations§
§impl StructNameSpace
impl StructNameSpace
pub fn field_by_index(self, index: i64) -> Expr
pub fn field_by_names<I, S>(self, names: I) -> Expr
pub fn field_by_names<I, S>(self, names: I) -> Expr
Retrieve one or multiple of the fields of this StructChunked
as a new Series.
This expression also expands the "*"
wildcard column.
pub 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.
pub fn rename_fields<I, S>(self, names: I) -> Expr
pub fn rename_fields<I, S>(self, names: I) -> Expr
Rename the fields of the StructChunked
.
pub fn _rename_fields_impl(self, names: Arc<[PlSmallStr]>) -> Expr
pub fn json_encode(self) -> Expr
Available on crate feature
json
only.pub fn with_fields(self, fields: Vec<Expr>) -> Result<Expr, PolarsError>
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
§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>
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