Skip to content

featurebyte.ViewColumn.cleaning_operations

cleaning_operations: Union[List[Annotated[Union[MissingValueImputation, DisguisedValueImputation, UnexpectedValueImputation, ValueBeyondEndpointImputation, StringValueImputation]]], NoneType]

Description

List of cleaning operations that were applied to this column during the view's creation.

Returns

  • Union[List[Annotated[Union[MissingValueImputation, DisguisedValueImputation, UnexpectedValueImputation, ValueBeyondEndpointImputation, StringValueImputation]]], NoneType]
    Returns None if the view column does not have parent. Otherwise, returns the list of cleaning operations.

Examples

Show the list of cleaning operations of the event view amount column after updating the critical data info of the event table.

>>> event_table = catalog.get_table("GROCERYINVOICE")
>>> event_table["Amount"].update_critical_data_info(
...    cleaning_operations=[
...        fb.MissingValueImputation(imputed_value=0),
...    ]
... )

>>> view = catalog.get_view("GROCERYINVOICE")
>>> view["Amount"].cleaning_operations
[MissingValueImputation(imputed_value=0.0)]
Empty list of column cleaning operations of the event table amount column.

>>> event_table["Amount"].update_critical_data_info(cleaning_operations=[])
>>> event_table["Amount"].cleaning_operations
[]