polars_core::chunked_array::ops

Trait ChunkExplode

Source
pub trait ChunkExplode {
    // Required methods
    fn offsets(&self) -> PolarsResult<OffsetsBuffer<i64>>;
    fn explode_and_offsets(&self) -> PolarsResult<(Series, OffsetsBuffer<i64>)>;

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

Explode/flatten a List or String Series

Required Methods§

Source

fn offsets(&self) -> PolarsResult<OffsetsBuffer<i64>>

Source

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

Provided Methods§

Implementors§