Teradata Package for Python Function Reference | 20.00 - 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 - 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
- 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"))