bluecast.preprocessing.nulls_and_infs

This module contains functions to handle nulls and infinite values.

Only the handling of infinite values is part of the preprocessing pipeline as Xgboost can handle missing values out of the box.

Module Contents

Functions

fill_infinite_values(df[, fill_with])

Replace infinite values with NaN or given value.

fill_nulls(df[, fill_with])

Replace null values with NaN or given value.

bluecast.preprocessing.nulls_and_infs.fill_infinite_values(df: pandas.DataFrame, fill_with: int | float = 0)

Replace infinite values with NaN or given value.

bluecast.preprocessing.nulls_and_infs.fill_nulls(df: pandas.DataFrame, fill_with: int | float = 0)

Replace null values with NaN or given value.