Teradata Python Package Function Reference - set_context - Teradata Python Package - Look here for syntax, methods and examples for the functions included in the Teradata Python Package.

Teradata® Python Package Function Reference

Product
Teradata Python Package
Release Number
16.20
Published
February 2020
Language
English (United States)
Last Update
2020-07-17
lifecycle
previous
Product Category
Teradata Vantage
teradataml.context.context.set_context = set_context(tdsqlengine, temp_database_name=None)
DESCRIPTION:
    Specifies a Teradata Vantage sqlalchemy engine as current context.
 
PARAMETERS:
    tdsqlengine:
        Required Argument.
        Specifies Teradata Vantage sqlalchemy engine object that should be used to establish a Teradata Vantage connection.
        Types: str
        
    temp_database_name:
        Optional Argument.
        Specifies the temporary database name where temporary tables, views will be created.
        Types: str
 
RETURNS:
    A Teradata Vantage connection object.
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    set_context(tdsqlengine = td_sqlalchemy_engine)