Teradata Package for Python Function Reference on VantageCloud Lake - remove - Teradata Package for Python - Look here for syntax, methods and examples for the functions included in the Teradata Package for Python.

Teradata® Package for Python Function Reference on VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Package for Python
Release Number
20.00.00.03
Published
December 2024
ft:locale
en-US
ft:lastEdition
2024-12-19
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.store.feature_store.models.FeatureGroup.remove = remove(self, object)
DESCRIPTION:
    Method to remove the objects from FeatureGroup. One can use this
    method to detach either Feature or DataSource or Entity from
    FeatureGroup. Much useful to remove existing Features from
    FeatureGroup.
 
PARAMETERS:
    object:
        Required Argument.
        Specifies the object to be removed from FeatureGroup.
        Types: Feature OR Entity OR DataSource OR FeatureGroup.
 
RETURNS:
    bool.
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    >>> load_example_data('dataframe', ['sales'])
    >>> df = DataFrame("sales")
    >>> # First create the features.
    >>> jan_feature = Feature("sales:Jan", df.Jan)
    >>> feb_feature = Feature("sales:Fan", df.Feb)
    >>> mar_feature = Feature("sales:Mar", df.Mar)
    >>> apr_feature = Feature("sales:Jan", df.Apr)
    >>> # Create Entity.
    >>> entity = Entity("sales:accounts", df.accounts)
    >>> # Create DataSource
    >>> data_source = DataSource("sales_source", df.show_query())
    >>> # Create FeatureGroup.
    >>> fg = FeatureGroup('Sales',
    ...                   features=[jan_feature, feb_feature, mar_feature],
    ...                   entity=entity,
    ...                   data_source=data_source)
 
    # Example: Remove the Feature with name "sales:Feb" from FeatureGroup.
    >>> fg.remove(feb_feature)
    True
    >>>