featurebyte.UnexpectedValueImputation¶
class UnexpectedValueImputation( 
*, 
type: Literal["not_in"]="not_in", 
imputed_value: Union[bool, int, float, str, NoneType]=None, 
expected_values: Sequence[Union[bool, int, float, str, 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¶
- type: Literal["not_in"]
 default: "not_in"
- imputed_value: Union[bool, int, float, str, NoneType]
 The value that will be used to replace any value that does not match the expected values in the expected_values list.
- expected_values: Sequence[Union[bool, int, float, str, NoneType]]
 List of values that are expected to be present.