pub trait ChunkCast {
    fn cast(&self, data_type: &DataType) -> Result<Series, PolarsError>;
    fn cast_unchecked(&self, data_type: &DataType) -> Result<Series, PolarsError>;
}
Expand description

Cast ChunkedArray<T> to ChunkedArray<N>

Required Methods

Cast a [ChunkedArray] to [DataType]

Does not check if the cast is a valid one and may over/underflow

Implementors

We cannot cast anything to or from List/LargeList So this implementation casts the inner type