Teradata Package for Python Function Reference on VantageCloud Lake - fit - 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.11
Publication Date
August 2026
Content Type
Programming Reference
Publication ID
B700-4500-200K
ft:locale
en-US
ft:lastEdition
2026-08-13
ft:sourceId
FTML
dita:id
TeradataPython_FxRef_Lake_2000
Product Category
Teradata Vantage
teradataml.automl.auto_dataprep.AutoDataPrep.fit = fit(self, data, target_column)
DESCRIPTION:
    Function to fit the data for Auto Data Preparation.
 
PARAMETERS:
    data:
        Required Argument.
        Specifies the input data to be used for Auto Data Preparation.
        Types: DataFrame
 
    target_column:
        Required Argument.
        Specifies the target column to be used for Auto Data Preparation.
        Types: str
 
RETURNS:
    None
 
RAISES:
    TeradataMlException, ValueError
 
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)