Trait polars::chunked_array::object::ChunkShiftFill [−][src]
pub trait ChunkShiftFill<T, V> { 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
fn shift_and_fill(&self, periods: i64, fill_value: V) -> ChunkedArray<T>
[src]
fn shift_and_fill(&self, periods: i64, fill_value: V) -> ChunkedArray<T>
[src]Shift the values by a given period and fill the parts that will be empty due to this operation
with fill_value
.
Implementors
pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<bool>
) -> ChunkedArray<BooleanType>
[src]pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&Series>
) -> ChunkedArray<ListType>
[src]pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<&str>
) -> ChunkedArray<Utf8Type>
[src]pub fn shift_and_fill(
&self,
_periods: i64,
_fill_value: Option<ObjectType<T>>
) -> ChunkedArray<ObjectType<T>>
[src]impl<T> ChunkShiftFill<T, Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
[src]
impl<T> ChunkShiftFill<T, Option<<T as ArrowPrimitiveType>::Native>> for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Copy,
[src]pub fn shift_and_fill(
&self,
periods: i64,
fill_value: Option<<T as ArrowPrimitiveType>::Native>
) -> ChunkedArray<T>
[src]