Trait polars::chunked_array::object::ChunkCast [−][src]
pub trait ChunkCast { fn cast<N>(&self) -> Result<ChunkedArray<N>, PolarsError>
where
N: PolarsDataType; fn cast_with_dtype(
&self,
data_type: &DataType
) -> Result<Series, PolarsError>; }
Expand description
Cast ChunkedArray<T>
to ChunkedArray<N>
Required methods
fn cast<N>(&self) -> Result<ChunkedArray<N>, PolarsError> where
N: PolarsDataType,
fn cast<N>(&self) -> Result<ChunkedArray<N>, PolarsError> where
N: PolarsDataType,
Cast ChunkedArray<T>
to ChunkedArray<N>
fn cast_with_dtype(&self, data_type: &DataType) -> Result<Series, PolarsError>
Implementors
impl<T> ChunkCast for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: NumCast,