Teradata Package for Python Function Reference on VantageCloud Lake - get_persisted_tables - 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
20.00.00.08
Published
November 2025
ft:locale
en-US
ft:lastEdition
2025-12-05
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.automl.AutoML.get_persisted_tables = get_persisted_tables(self)
DESCRIPTION:
    Get the list of the tables that are persisted in the database.
    Note:
        * User is responsible for keeping track of the persistent tables 
          and cleanup of the same if required.
 
PARAMETERS:
    None
 
RETURNS:
    Dictionary, containing the list of table names that mapped to the stage
    at which it was generated.
 
RAISES:
    TeradataMlException.
 
EXAMPLES:
    # Create an instance of the AutoML called "obj" by referring 
    # "AutoML()" or "AutoRegressor()" or "AutoClassifier()" or 
    # "AutoFraud()" or "AutoChurn()" or "AutoCluster()" method.
    # 'persist' argument must be set to True in the AutoML object.
    >>> obj = AutoML(verbose=2, max_models=10, persist=True)
 
    # Load and fit the data.
    >>> load_example_data("teradataml", "titanic")
    >>> titanic_data = DataFrame("titanic")
    >>> obj.fit(data = titanic_data, target_column = titanic.survived)
 
    # Get the list of tables that are persisted in the database.
    >>> obj.get_persisted_tables()