get_persisted_tables | AutoML | teradataml - get_persisted_tables - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2026-01-07
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

Use the get_persisted_tables function to get the list of the tables that are persisted in the database.

You are responsible for keeping track of the persistent tables and persistent table cleanup.

get_persisted_tables returns a dictionary containing the list of table names that mapped to the stage at which it was generated.

Parameters

There are no parameters for this function.

Example

Create an instance of the AutoML called "obj" by referring one of the following methods:
  • AutoML()
  • AutoRegressor()
  • AutoClassifier()
  • AutoFraud()
  • AutoChurn()
  • AutoCluster()

The '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()