Trait polars_core::chunked_array::ops::ChunkCast[][src]

pub trait ChunkCast {
    fn cast<N>(&self) -> Result<ChunkedArray<N>>
    where
        N: PolarsDataType
;
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
[src]

Cast ChunkedArray<T> to ChunkedArray<N>

fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>[src]

Implementors

impl ChunkCast for BooleanChunked[src]

fn cast<N>(&self) -> Result<ChunkedArray<N>> where
    N: PolarsDataType
[src]

fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>[src]

impl ChunkCast for CategoricalChunked[src]

fn cast<N>(&self) -> Result<ChunkedArray<N>> where
    N: PolarsDataType
[src]

fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>[src]

impl ChunkCast for ListChunked[src]

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

fn cast<N>(&self) -> Result<ChunkedArray<N>> where
    N: PolarsDataType
[src]

fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>[src]

impl ChunkCast for Utf8Chunked[src]

fn cast<N>(&self) -> Result<ChunkedArray<N>> where
    N: PolarsDataType
[src]

fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>[src]

impl<T> ChunkCast for ChunkedArray<T> where
    T: PolarsNumericType,
    T::Native: NumCast
[src]

fn cast<N>(&self) -> Result<ChunkedArray<N>> where
    N: PolarsDataType
[src]

fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series>[src]