Trait polars::prelude::ChunkFillNone [−][src]
pub trait ChunkFillNone { fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self, PolarsError>; }
Expand description
Replace None values with various strategies
Required methods
fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self, PolarsError>
fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self, PolarsError>
Replace None values with one of the following strategies:
- Forward fill (replace None with the previous value)
- Backward fill (replace None with the next value)
- Mean fill (replace None with the mean of the whole array)
- Min fill (replace None with the minimum of the whole array)
- Max fill (replace None with the maximum of the whole array)
Implementors
impl<T> ChunkFillNone for ChunkedArray<T> where
T: PolarsNumericType,
<T as ArrowPrimitiveType>::Native: Add<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: PartialOrd<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Div<<T as ArrowPrimitiveType>::Native>,
<T as ArrowPrimitiveType>::Native: Num,
<T as ArrowPrimitiveType>::Native: NumCast,
<T as ArrowPrimitiveType>::Native: Zero,
<T as ArrowPrimitiveType>::Native: One,
<T as ArrowPrimitiveType>::Native: Bounded,
<<T as ArrowPrimitiveType>::Native as Add<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,
<<T as ArrowPrimitiveType>::Native as Div<<T as ArrowPrimitiveType>::Native>>::Output == <T as ArrowPrimitiveType>::Native,