pub struct FillNull { /* private fields */ }Expand description
A transform that fills null values in specified columns.
§Example
ⓘ
use alimentar::{FillNull, FillStrategy};
// Fill nulls in "age" column with 0
let fill = FillNull::new("age", FillStrategy::Zero);
// Fill nulls with a specific value
let fill = FillNull::new("score", FillStrategy::Float(0.0));
// Forward fill (use previous value)
let fill = FillNull::new("value", FillStrategy::Forward);Implementations§
Source§impl FillNull
impl FillNull
Sourcepub fn new<S: Into<String>>(column: S, strategy: FillStrategy) -> Self
pub fn new<S: Into<String>>(column: S, strategy: FillStrategy) -> Self
Creates a FillNull transform for the specified column.
Sourcepub fn with_zero<S: Into<String>>(column: S) -> Self
pub fn with_zero<S: Into<String>>(column: S) -> Self
Creates a FillNull transform that fills with zero.
Sourcepub fn strategy(&self) -> &FillStrategy
pub fn strategy(&self) -> &FillStrategy
Returns the fill strategy.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FillNull
impl RefUnwindSafe for FillNull
impl Send for FillNull
impl Sync for FillNull
impl Unpin for FillNull
impl UnwindSafe for FillNull
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more