Struct polars::datatypes::ObjectType [−][src]
pub struct ObjectType<T>(_);
Trait Implementations
Create a new ChunkedArray filled with values at that index.
pub fn fill_null_with_values(
&self,
_value: ObjectType<T>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
pub fn fill_null_with_values(
&self,
_value: ObjectType<T>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
Replace None values with a give value T
.
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError> where
ChunkedArray<ObjectType<T>>: Sized,
pub fn filter(
&self,
filter: &ChunkedArray<BooleanType>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError> where
ChunkedArray<ObjectType<T>>: Sized,
Filter values in the ChunkedArray with a boolean mask. Read more
Return a reversed version of this array.
pub fn shift_and_fill(
&self,
_periods: i64,
_fill_value: Option<ObjectType<T>>
) -> ChunkedArray<ObjectType<T>>
pub fn shift_and_fill(
&self,
_periods: i64,
_fill_value: Option<ObjectType<T>>
) -> ChunkedArray<ObjectType<T>>
Shift the values by a given period and fill the parts that will be empty due to this operation
with fill_value
. Read more
Traverse and collect every nth element in a new array.
Get unique values of a ChunkedArray
Get first index of the unique values in a ChunkedArray
.
This Vec is sorted. Read more
Number of unique values in the ChunkedArray
Get a mask of all the unique values.
Get a mask of all the duplicated values.
Count the unique values.
The most occurring value(s). Can return multiple Values
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
pub fn zip_with(
&self,
mask: &ChunkedArray<BooleanType>,
other: &ChunkedArray<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
Create a new ChunkedArray with values from self where the mask evaluates true
and values
from other
where the mask evaluates false
Read more
impl<T> NewChunkedArray<ObjectType<T>, T> for ChunkedArray<ObjectType<T>> where
T: PolarsObject,
impl<T> NewChunkedArray<ObjectType<T>, T> for ChunkedArray<ObjectType<T>> where
T: PolarsObject,
Create a new ChunkedArray from an iterator.
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<T>>
) -> ChunkedArray<ObjectType<T>>
pub fn new_from_opt_iter(
name: &str,
it: impl Iterator<Item = Option<T>>
) -> ChunkedArray<ObjectType<T>>
Create a new ChunkedArray from an iterator.