Teradata Package for Python Function Reference on VantageCloud Lake - get_data_source - 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.11
Publication Date
August 2026
Content Type
Programming Reference
Publication ID
B700-4500-200K
ft:locale
en-US
ft:lastEdition
2026-08-13
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.store.feature_store.feature_store.FeatureStore.get_data_source = get_data_source(self, name)
DESCRIPTION:
    Get the data source from feature store.
 
PARAMETERS:
    name:
        Required Argument.
        Specifies the name of the data source.
        Types: str
 
RETURNS:
    Object of DataSource.
 
RAISES:
    TeradataMLException
 
EXAMPLES:
    >>> from teradataml import DataFrame, DataSource, FeatureStore, load_example_data
    # Create DataFrame on admissions data.
    >>> load_example_data("dataframe", "admissions_train")
    >>> df = DataFrame("admissions_train")
    >>> df
       masters   gpa     stats programming  admitted
    id
    34     yes  3.85  Advanced    Beginner         0
    32     yes  3.46  Advanced    Beginner         0
    11      no  3.13  Advanced    Advanced         1
    40     yes  3.95    Novice    Beginner         0
    38     yes  2.65  Advanced    Beginner         1
    36      no  3.00  Advanced      Novice         0
    7      yes  2.33    Novice      Novice         1
    26     yes  3.57  Advanced    Advanced         1
    19     yes  1.98  Advanced    Advanced         0
    13      no  4.00  Advanced      Novice         1
 
    # Create FeatureStore for repo 'vfs_v1'.
    >>> fs = FeatureStore("vfs_v1")
    Repo vfs_v1 does not exist. Run FeatureStore.setup() to create the repo and setup FeatureStore.
    # Setup FeatureStore for this repository.
    >>> fs.setup()
    True
 
    # Create DataSource using DataFrame 'df' with name 'admissions'.
    >>> ds = DataSource('admissions', source=df)
    # Apply the DataSource to FeatureStore 'vfs_v1'.
    >>> fs.apply(ds)
    True
 
    # Get the DataSource 'admissions' from repo 'vfs_v1'
    >>> ds = fs.get_data_source('admissions')
    >>> ds
    DataSource(name=admissions)