Teradata Package for Python Function Reference on VantageCloud Lake - __init__ - 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.08
Published
November 2025
ft:locale
en-US
ft:lastEdition
2025-12-05
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.store.feature_store.models.Entity.__init__ = __init__(self, name, columns, description=None)
DESCRIPTION:
    Constructor for creating Entity Object.
 
PARAMETERS:
    name:
        Required Argument.
        Specifies the unique name of the entity.
        Types: str.
 
    columns:
        Required Argument.
        Specifies the names of the columns.
        Types: teradataml DataFrame Column OR str OR list of teradataml DataFrame Columns, str.
 
    description:
        Optional Argument.
        Specifies human readable description for Feature.
        Types: str
 
RETURNS:
    Object of Entity.
 
RAISES:
    None
 
EXAMPLES:
    >>> load_example_data('dataframe', ['sales'])
    >>> df = DataFrame("sales")
 
    # Example 1: Create a Entity for above mentioned DataFrame with name 'sales_accounts'.
    # create a Entity with column 'accounts' for 'sales' DataFrame and name it as
    # 'sales_accounts'.
    >>> from teradataml import Entity
    >>> entity = Entity('sales_accounts', df.accounts)
    >>> entity
    Entity(name=sales_accounts)
 
    # Example 2: Create a Entity with column name 'accounts'.
    >>> entity = Entity('sales_accounts', 'accounts')
    >>> entity
    Entity(name=sales_accounts)
 
    # Example 3: Create a Entity with multiple columns.
    >>> entity = Entity('sales_cols', ['accounts', 'jan'])
    >>> entity
    Entity(name=sales_cols)