Teradata Package for Python Function Reference on VantageCloud Lake | 17.20 - in_schema - 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
17.20
Publication Date
November 2022
Content Type
Programming Reference
Publication ID
B700-4500-112K
ft:locale
en-US
ft:lastEdition
2024-02-21
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_1720
Product Category
Teradata Vantage
teradataml.common.utils.UtilFuncs._in_schema = _in_schema(schema_name, table_name)
Function takes a schema name and a table name and creates a database
object name in the format "schema"."table_name".
Note:
    teradataml recommends to use this function to access table(s)/view(s),
    from the database other than the default database.
 
PARAMETERS:
    schema_name:
        Required Argument
        Specifies the schema where the table resides in.
        Types: str
 
    table_name:
        Required Argument
        Specifies the table name or view name in Vantage.
        Types: str
 
EXAMPLES:
    from teradataml.dataframe.dataframe import in_schema, DataFrame
 
    # Example 1: The following example creates a DataFrame from the
    #            existing Vantage table "dbcinfo" in the non-default
    #            database "dbc" using the in_schema() function.
    df = DataFrame(in_schema("dbc", "dbcinfo"))
 
    # Example 2: The following example uses from_table() function, existing
    #            Vantage table "dbcinfo" and non-default database "dbc" to
    #            create a teradataml DataFrame.
    df = DataFrame.from_table(in_schema("dbc","dbcinfo"))