Trait polars_core::chunked_array::ops::ChunkShiftFill
source · pub trait ChunkShiftFill<T: PolarsDataType, V> {
// 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§
sourcefn shift_and_fill(&self, periods: i64, fill_value: V) -> ChunkedArray<T>
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§
impl ChunkShiftFill<BinaryOffsetType, Option<&[u8]>> for BinaryOffsetChunked
impl ChunkShiftFill<BinaryType, Option<&[u8]>> for BinaryChunked
impl ChunkShiftFill<BooleanType, Option<bool>> for BooleanChunked
impl ChunkShiftFill<ListType, Option<&Series>> for ListChunked
impl ChunkShiftFill<StringType, Option<&str>> for StringChunked
impl<T> ChunkShiftFill<T, Option<<T as PolarsNumericType>::Native>> for ChunkedArray<T>where
T: PolarsNumericType,
impl<T: PolarsObject> ChunkShiftFill<ObjectType<T>, Option<ObjectType<T>>> for ObjectChunked<T>
Available on crate feature
object
only.