Teradata Package for Python Function Reference | 20.00 - remove_feature - 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 - 20.00

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00.00.11
Published
August 2026
ft:locale
en-US
ft:lastEdition
2026-08-13
dita:id
TeradataPython_FxRef_Enterprise_2000
Product Category
Teradata Vantage
teradataml.store.feature_store.models.FeatureGroup.remove_feature = remove_feature(self, object)
DESCRIPTION:
    Method to remove the objects from FeatureGroup. One can use this
    method to detach a Feature from FeatureGroup.
 
PARAMETERS:
    object:
        Required Argument.
        Specifies the object to be removed from FeatureGroup.
        Types: Feature.
 
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:Feb", df.Feb)
    >>> mar_feature = Feature("sales:Mar", df.Mar)
    >>> apr_feature = Feature("sales:Apr", 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 1: Remove the Feature with name "sales:Feb" from FeatureGroup.
    >>> fg.remove_feature(feb_feature)
    True
 
    # Get the features from FeatureGroup
    >>> fg.features
    [Feature(name=sales:Jan), 
     Feature(name=sales:Mar), 
     Feature(name=sales:Apr)]