Skip to content

featurebyte.Target.fillna

fillna(
other: Union[bool, int, float, str]
)

Description

Replaces missing value in each element with the provided value in-place.

Parameters

  • other: Union[bool, int, float, str]
    Value to replace missing values

Examples

Fill missing values in a column with 0:

>>> view = catalog.get_view("GROCERYINVOICE")
>>> view["Amount"].fillna(0)
Fill missing values in a feature with 0:

>>> feature = catalog.get_feature("InvoiceAmountAvg_60days")
>>> feature.fillna(0)