Teradata Package for Python Function Reference on VantageCloud Lake - get_data - 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.autodataprep.AutoDataPrep.get_data = get_data(self)
DESCRIPTION:
    Function to retrieve the data after Auto Data Preparation.
 
RETURNS:
     Dictionary of DataFrames containing the data after Auto Data Preparation.
 
RAISES:
    TeradataMlException
 
EXAMPLES:
    # Notes:
    #     1. Get the connection to Vantage to execute the function.
    #     2. One must import the required functions mentioned in
    #        the example from teradataml.
    #     3. Function raises error if not supported on the Vantage
    #        user is connected to.
 
    # Load the example data.
    >>> load_example_data("teradataml", "titanic")
 
    # Create teradataml DataFrames.
    >>> titanic = DataFrame.from_table("titanic")
    
    # Example 1: Run AutoDataPrep for classification problem.
    # Scenario: Titanic dataset is used to predict the survival of passengers.
   
    # Create an instance of AutoDataPrep.
    >>> aprep_obj = AutoDataPrep(task_type="Classification", verbose=2)
 
    # Fit the data.
    >>> aprep_obj.fit(titanic, titanic.survived)
    
    # Retrieve the data after Auto Data Preparation.
    >>> datas = aprep_obj.get_data()