Trait polars_core::chunked_array::ops::ChunkFillNone [−][src]
pub trait ChunkFillNone { fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>
where
Self: Sized; }
Expand description
Replace None values with various strategies
Required methods
fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self> where
Self: Sized,
[src]
fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self> where
Self: Sized,
[src]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 ChunkFillNone for BooleanChunked
[src]
impl ChunkFillNone for BooleanChunked
[src]fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>
[src]
impl ChunkFillNone for CategoricalChunked
[src]
impl ChunkFillNone for CategoricalChunked
[src]fn fill_none(&self, _strategy: FillNoneStrategy) -> Result<Self>
[src]
impl ChunkFillNone for ListChunked
[src]
impl ChunkFillNone for ListChunked
[src]fn fill_none(&self, _strategy: FillNoneStrategy) -> Result<Self>
[src]
impl ChunkFillNone for Utf8Chunked
[src]
impl ChunkFillNone for Utf8Chunked
[src]fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>
[src]
impl<T> ChunkFillNone for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + PartialOrd + Div<Output = T::Native> + Num + NumCast + Zero + One + Bounded,
[src]
impl<T> ChunkFillNone for ChunkedArray<T> where
T: PolarsNumericType,
T::Native: Add<Output = T::Native> + PartialOrd + Div<Output = T::Native> + Num + NumCast + Zero + One + Bounded,
[src]fn fill_none(&self, strategy: FillNoneStrategy) -> Result<Self>
[src]
impl<T> ChunkFillNone for ObjectChunked<T>
[src]
impl<T> ChunkFillNone for ObjectChunked<T>
[src]