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.DataDomain.__init__ = __init__(self, repo, data_domain)
DESCRIPTION:
    Constructor for DataDomain class.
 
PARAMETERS:
    repo:
        Required Argument.
        Specifies the name of the repo to which Datadomain points to.
        Types: str.
 
    data_domain:
        Required Argument.
        Specifies the name of the data domain.
        Types: str.
 
RETURNS:
    DataDomain
 
RAISES:
    None
 
EXAMPLES:
    # Example 1: Create a DataDomain object.
    # Load data to be used.
    >>> from teradataml import load_example_data, DataFrame
    >>> load_example_data('dataframe', ['sales'])
    >>> df = DataFrame('sales')
 
    # Define repo and data doamin.
    >>> repo = 'vfs_test'
    >>> data_domain = 'sales'
 
    # Create a FeatureStore.
    >>> from teradataml import FeatureStore
    >>> fs = FeatureStore(repo=repo, data_domain=data_domain)
    Repo vfs_test does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
    >>> fs.setup()
    True
 
    >>> from teradataml import DataDomain
    >>> data_domain = DataDomain(repo='vfs_test',
    ...                          data_domain='sales')