featurebyte.UnexpectedValueImputation¶
class UnexpectedValueImputation(
*,
imputed_value: Union[StrictInt, StrictFloat, StrictStr, bool, NoneType]=None,
type: Literal["not_in"]="not_in",
expected_values: Sequence[Union[StrictInt, StrictFloat, StrictStr, bool, NoneType]]
)Description¶
UnexpectedValueImputation class is used to decalre the operation to impute the unexpected value of a table column. Note that this imputation operation will not impute missing value.
If the imputed_value parameter is None, the values to impute are replaced by missing values and the corresponding rows are ignored during aggregation operations.
Parameters¶
- imputed_value: Union[StrictInt, StrictFloat, StrictStr, bool, NoneType]
The value that will be used to replace any value that does not match the expected values in the expected_values list. - type: Literal["not_in"]
default: "not_in"
- expected_values: Sequence[Union[StrictInt, StrictFloat, StrictStr, bool, NoneType]]
List of values that are expected to be present.