DataDomain Class | FeatureStore | Teradata Package for Python - DataDomain Class - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2025-12-05
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

Use the DataDomain class to represent a data domain in the Feature Store.

Syntax

DataDomain(repo, data_domain)

Required Parameters

repo
Specifies the repository name.
data_domain
Specifies the data domain.

Example setup

Load the data to be used and create the 'sales' DataFrame.

>>> from teradataml import load_example_data, DataFrame
>>> load_example_data('dataframe', ['sales'])
>>> df = DataFrame('sales')

Example 1: Create a DataDomain object

Define the repository and data domain.

>>> repo = 'vfs_test'
>>> data_domain = 'sales'

Create a feature store.

>>> 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.

Set up the feature store.

>>> fs.setup()
True

Create the data domain.

>>> from teradataml import DataDomain
>>> data_domain = DataDomain(repo='vfs_test',
...                          data_domain='sales')