pub struct StructNameSpace(/* private fields */);
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<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.
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<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
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