Teradata Package for Python Function Reference on VantageCloud Lake - features - 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.features
DESCRIPTION:
    Get's the features from FeatureGroup.
 
PARAMETERS:
    None
 
RETURNS:
    list
 
RAISES:
    None
 
EXAMPLES:
    >>> from teradataml import DataSource, Entity, Feature, FeatureGroup, load_example_data
    >>> load_example_data("dataframe", "sales")
    >>> # Let's create DataFrame first.
    >>> df = DataFrame("sales")
    >>> # 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:Apr", df.Apr)
    >>> # Create Entity.
    >>> entity = Entity("sales:accounts", df.accounts)
    >>> # Create DataSource
    >>> data_source = DataSource("sales_source", df)
    >>> # Create FeatureGroup.
    >>> fg = FeatureGroup('Sales',
    ...                   features=[jan_feature, feb_feature, mar_feature, apr_feature],
    ...                   entity=entity,
    ...                   data_source=data_source)
 
    # Get the features from FeatureGroup
    >>> fg.features
    [Feature(name=sales:Jan), Feature(name=sales:Fan), Feature(name=sales:Mar), Feature(name=sales:Apr)]
    >>>