Skip to content

featurebyte.FeatureList.drop

drop(
items: List[str]
) -> FeatureGroup

Description

Drops feature(s) from the original FeatureList and returns a new FeatureGroup object.

Parameters

  • items: List[str]
    List of feature names to be dropped

Returns

  • FeatureGroup
    FeatureGroup object containing remaining feature(s)

Examples

>>> feature_list = fb.FeatureList([
...     catalog.get_feature("InvoiceCount_60days"),
...     catalog.get_feature("InvoiceAmountAvg_60days"),
... ], name="feature_lists_invoice_features")
>>> amount_only_feature_list = feature_list.drop(["InvoiceCount_60days"])