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.DataSource.__init__ = __init__(self, name, source, description=None, timestamp_col_name=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_col_name:
Optional Argument.
Specifies the timestamp column indicating when the row was created.
Types: str
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)
>>>