Trait polars_core::chunked_array::ops::ChunkFillNull
source · pub trait ChunkFillNull {
fn fill_null(&self, strategy: FillNullStrategy) -> PolarsResult<Self>
where
Self: Sized;
}
Expand description
Replace None values with various strategies
Required Methods§
sourcefn fill_null(&self, strategy: FillNullStrategy) -> PolarsResult<Self>where
Self: Sized,
fn fill_null(&self, strategy: FillNullStrategy) -> PolarsResult<Self>where
Self: Sized,
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 ChunkFillNull for BinaryChunked
Available on crate feature
dtype-binary
only.impl ChunkFillNull for BooleanChunked
impl ChunkFillNull for ListChunked
impl ChunkFillNull for Utf8Chunked
impl<T> ChunkFillNull for ChunkedArray<T>where
T: PolarsNumericType,
<T::Native as Simd>::Simd: Add<Output = <T::Native as Simd>::Simd> + Sum<T::Native> + SimdOrd<T::Native>,
impl<T: PolarsObject> ChunkFillNull for ObjectChunked<T>
Available on crate feature
object
only.