polars::prelude

Trait 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>