ChunkShiftFill

Trait ChunkShiftFill 

Source
pub trait ChunkShiftFill<T, V>
where T: PolarsDataType,
{ // Required method fn shift_and_fill(&self, periods: i64, fill_value: V) -> ChunkedArray<T>; }
Expand description

Shift the values of a ChunkedArray by a number of periods.

Required Methods§

Source

fn shift_and_fill(&self, periods: i64, fill_value: V) -> ChunkedArray<T>

Shift the values by a given period and fill the parts that will be empty due to this operation with fill_value.

Implementors§

Source§

impl ChunkShiftFill<FixedSizeListType, Option<&Series>> for ChunkedArray<FixedSizeListType>

Available on crate feature dtype-array only.
Source§

impl ChunkShiftFill<ListType, Option<&Series>> for ChunkedArray<ListType>

Source§

impl<'a, T> ChunkShiftFill<T, Option<<T as PolarsDataType>::Physical<'a>>> for ChunkedArray<T>
where T: PolarsDataType<IsNested = FalseT, IsObject = FalseT>, ChunkedArray<T>: ChunkFull<<T as PolarsDataType>::Physical<'a>> + ChunkFullNull, <T as PolarsDataType>::Physical<'b>: for<'b> TotalOrd,

Source§

impl<T> ChunkShiftFill<ObjectType<T>, Option<T>> for ChunkedArray<ObjectType<T>>
where T: PolarsObject,

Available on crate feature object only.