Trait polars_core::chunked_array::ops::ChunkCast
source · [−]pub trait ChunkCast {
fn cast(&self, data_type: &DataType) -> Result<Series>;
fn cast_unchecked(&self, data_type: &DataType) -> Result<Series>;
}
Expand description
Cast ChunkedArray<T>
to ChunkedArray<N>
Required Methods
fn cast_unchecked(&self, data_type: &DataType) -> Result<Series>
fn cast_unchecked(&self, data_type: &DataType) -> Result<Series>
Does not check if the cast is a valid one and may over/underflow
Implementors
impl ChunkCast for BooleanChunked
impl ChunkCast for ListChunked
We cannot cast anything to or from List/LargeList So this implementation casts the inner type