pub struct DataCleaner;Expand description
Data cleaning utilities
Implementations§
Source§impl DataCleaner
impl DataCleaner
Sourcepub fn drop_missing_rows<T>(data: &Array2<T>) -> UtilsResult<Array2<T>>
pub fn drop_missing_rows<T>(data: &Array2<T>) -> UtilsResult<Array2<T>>
Remove rows with missing values (NaN)
Sourcepub fn fill_missing<T>(data: &mut Array2<T>, fill_value: T)
pub fn fill_missing<T>(data: &mut Array2<T>, fill_value: T)
Fill missing values with specified value
Sourcepub fn fill_with_mean<T>(data: &mut Array2<T>) -> UtilsResult<()>
pub fn fill_with_mean<T>(data: &mut Array2<T>) -> UtilsResult<()>
Fill missing values with column means
Sourcepub fn fill_with_median<T>(data: &mut Array2<T>) -> UtilsResult<()>
pub fn fill_with_median<T>(data: &mut Array2<T>) -> UtilsResult<()>
Fill missing values with column medians
Auto Trait Implementations§
impl Freeze for DataCleaner
impl RefUnwindSafe for DataCleaner
impl Send for DataCleaner
impl Sync for DataCleaner
impl Unpin for DataCleaner
impl UnwindSafe for DataCleaner
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more