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§

Provided Methods§

Implementors§

Source§

impl ChunkExplode for ArrayChunked

Available on crate feature dtype-array only.
Source§

impl ChunkExplode for ListChunked