Skip to content

featurebyte.Feature.fillna

fillna(
other: Union[StrictInt, StrictFloat, StrictStr, bool]
)

Description

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

Parameters

  • other: Union[StrictInt, StrictFloat, StrictStr, bool]
    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)