Struct polars::datatypes::StructChunked
source · [−]pub struct StructChunked { /* private fields */ }
Expand description
This is logical type StructChunked
that
dispatches most logic to the fields
implementations
Different from StructArray
, this
type does not have its own validity
. That means some operations
will be a bit less efficient because we need to check validity of all
fields. However this does save a lot of code and compile times.
Implementations
sourceimpl StructChunked
impl StructChunked
pub fn new(name: &str, fields: &[Series]) -> Result<StructChunked, PolarsError>
pub fn rechunk(&mut self)
sourcepub fn field_by_name(&self, name: &str) -> Result<Series, PolarsError>
pub fn field_by_name(&self, name: &str) -> Result<Series, PolarsError>
Get access to one of this [StructChunked]
’s fields
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn name(&self) -> &String
pub fn fields(&self) -> &[Series]
pub fn fields_mut(&mut self) -> &mut Vec<Series, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
pub fn rename(&mut self, name: &str)
Trait Implementations
sourceimpl AggList for StructChunked
impl AggList for StructChunked
sourceunsafe fn agg_list(&self, groups: &GroupsProxy) -> Series
unsafe fn agg_list(&self, groups: &GroupsProxy) -> Series
Safety Read more
sourceimpl ChunkCompare<&StructChunked> for StructChunked
impl ChunkCompare<&StructChunked> for StructChunked
type Item = ChunkedArray<BooleanType>
sourcefn eq_missing(&self, rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn eq_missing(&self, rhs: &StructChunked) -> ChunkedArray<BooleanType>
Check for equality and regard missing values as equal.
sourcefn equal(&self, rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn equal(&self, rhs: &StructChunked) -> ChunkedArray<BooleanType>
Check for equality.
sourcefn not_equal(&self, rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn not_equal(&self, rhs: &StructChunked) -> ChunkedArray<BooleanType>
Check for inequality.
sourcefn gt(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn gt(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
Greater than comparison.
sourcefn gt_eq(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn gt_eq(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
Greater than or equal comparison.
sourcefn lt(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn lt(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
Less than comparison.
sourcefn lt_eq(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
fn lt_eq(&self, _rhs: &StructChunked) -> ChunkedArray<BooleanType>
Less than or equal comparison
sourceimpl Clone for StructChunked
impl Clone for StructChunked
sourcefn clone(&self) -> StructChunked
fn clone(&self) -> StructChunked
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<StructChunked> for DataFrame
impl From<StructChunked> for DataFrame
sourcefn from(ca: StructChunked) -> DataFrame
fn from(ca: StructChunked) -> DataFrame
Converts to this type from the input type.
sourceimpl<'a> IntoIterator for &'a StructChunked
impl<'a> IntoIterator for &'a StructChunked
type IntoIter = StructIter<'a>
type IntoIter = StructIter<'a>
Which kind of iterator are we turning this into?
sourcefn into_iter(self) -> <&'a StructChunked as IntoIterator>::IntoIter
fn into_iter(self) -> <&'a StructChunked as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
sourceimpl IntoSeries for StructChunked
impl IntoSeries for StructChunked
sourceimpl IntoSeriesOps for StructChunked
impl IntoSeriesOps for StructChunked
sourceimpl IsIn for StructChunked
impl IsIn for StructChunked
sourcefn is_in(&self, other: &Series) -> Result<ChunkedArray<BooleanType>, PolarsError>
fn is_in(&self, other: &Series) -> Result<ChunkedArray<BooleanType>, PolarsError>
Check if elements of this array are in the right Series, or List values of the right Series.
sourceimpl LogicalType for StructChunked
impl LogicalType for StructChunked
Auto Trait Implementations
impl !RefUnwindSafe for StructChunked
impl Send for StructChunked
impl Sync for StructChunked
impl Unpin for StructChunked
impl !UnwindSafe for StructChunked
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more