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
- VMware
- Enterprise
- IntelliFlex
- Product
- Teradata Package for Python
- Release Number
- 20.00.00.11
- Published
- August 2026
- ft:locale
- en-US
- ft:lastEdition
- 2026-08-13
- dita:id
- TeradataPython_FxRef_Enterprise_2000
- Product Category
- Teradata Vantage
- teradataml.store.feature_store.models.DataSource.__init__ = __init__(self, name, source, description=None, timestamp_column=None)
- DESCRIPTION:
Constructor for creating DataSource Object.
PARAMETERS:
name:
Required Argument.
Specifies the unique name of the DataSource.
Types: str.
source:
Required Argument.
Specifies the source query of DataSource.
Types: str OR teradataml DataFrame.
description:
Optional Argument.
Specifies human readable description for DataSource.
Types: str
timestamp_column:
Optional Argument.
Specifies the timestamp column indicating when the row was created.
Types: str OR teradataml DataFrame Column
RETURNS:
Object of DataSource.
RAISES:
None
EXAMPLES:
>>> load_example_data('dataframe', ['sales'])
>>> df = DataFrame("sales")
# Example 1: Create a DataSource for above mentioned DataFrame with name 'Sales_Data'.
>>> from teradataml import DataSource
>>> data_source = DataSource('Sales_Data', df)
>>> data_source
DataSource(Sales_Data)
# Example 2: Create a DataSource with source query.
>>> data_source = DataSource('Sales_Data_Query', source="SELECT * FROM sales")
>>> data_source
DataSource(Sales_Data_Query)