Trait polars::chunked_array::ops::ChunkExplode

source ·
pub trait ChunkExplode {
    // Required methods
    fn offsets(&self) -> Result<OffsetsBuffer<i64>, PolarsError>;
    fn explode_and_offsets(
        &self
    ) -> Result<(Series, OffsetsBuffer<i64>), PolarsError>;

    // Provided method
    fn explode(&self) -> Result<Series, PolarsError> { ... }
}
Expand description

Explode/flatten a List or String Series

Required Methods§

source

fn offsets(&self) -> Result<OffsetsBuffer<i64>, PolarsError>

source

fn explode_and_offsets( &self ) -> Result<(Series, OffsetsBuffer<i64>), PolarsError>

Provided Methods§

Implementors§

source§

impl ChunkExplode for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
source§

impl ChunkExplode for ChunkedArray<ListType>