Trait polars::prelude::ChunkShiftFill [−][src]
Shift the values of a ChunkedArray by a number of periods.
Required methods
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: V
) -> Result<ChunkedArray<T>, PolarsError>
[src]
&self,
periods: i32,
fill_value: V
) -> Result<ChunkedArray<T>, PolarsError>
Shift the values by a given period and fill the parts that will be empty due to this operation
with fill_value
.
Implementors
impl ChunkShiftFill<BooleanType, Option<bool>> for ChunkedArray<BooleanType>
[src]
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: Option<bool>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
[src]
&self,
periods: i32,
fill_value: Option<bool>
) -> Result<ChunkedArray<BooleanType>, PolarsError>
impl<'_> ChunkShiftFill<ListType, Option<&'_ Series>> for ChunkedArray<ListType>
[src]
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: Option<&Series>
) -> Result<ChunkedArray<ListType>, PolarsError>
[src]
&self,
periods: i32,
fill_value: Option<&Series>
) -> Result<ChunkedArray<ListType>, PolarsError>
impl<'_> ChunkShiftFill<Utf8Type, Option<&'_ str>> for ChunkedArray<Utf8Type>
[src]
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: Option<&str>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
[src]
&self,
periods: i32,
fill_value: Option<&str>
) -> Result<ChunkedArray<Utf8Type>, PolarsError>
impl<T> ChunkShiftFill<ObjectType<T>, Option<ObjectType<T>>> for ChunkedArray<ObjectType<T>>
[src]
pub fn shift_and_fill(
&self,
_periods: i32,
_fill_value: Option<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
[src]
&self,
_periods: i32,
_fill_value: Option<ObjectType<T>>
) -> Result<ChunkedArray<ObjectType<T>>, PolarsError>
impl<T> ChunkShiftFill<T, Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
[src]
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
pub fn shift_and_fill(
&self,
periods: i32,
fill_value: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<ChunkedArray<T>, PolarsError>
[src]
&self,
periods: i32,
fill_value: Option<<T as ArrowPrimitiveType>::Native>
) -> Result<ChunkedArray<T>, PolarsError>