Trait polars_core::chunked_array::ops::ChunkCast [−][src]
pub trait ChunkCast { fn cast<N>(&self) -> Result<ChunkedArray<N>>
where
N: PolarsDataType,
Self: Sized; fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>; }
Expand description
Cast ChunkedArray<T>
to ChunkedArray<N>
Required methods
fn cast<N>(&self) -> Result<ChunkedArray<N>> where
N: PolarsDataType,
Self: Sized,
fn cast<N>(&self) -> Result<ChunkedArray<N>> where
N: PolarsDataType,
Self: Sized,
Cast ChunkedArray<T>
to ChunkedArray<N>
fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>