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

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
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_Enterprise_2000
lifecycle
latest
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 list of teradataml DataFrame Columns.
 
    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")
 
    # 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)
    >>>