Use the deploy() function to deploy the AutoDataPrep-generated data to the database, i.e., save the data in the database.
Required Parameter
- table_name
- Specifies the name of the table to store the information of deployed datasets in the database.
Example setup
- Create an instance of the AutoDataPrep.
- Perform fit() operation on the AutoDataPrep object.
- Deploy the data to the table.
- From teradataml, import AutoDataPrep.
- Load the example data.
>>> load_example_data("teradataml", "titanic")
>>> titanic = DataFrame.from_table("titanic")
Example 1: Deploy data
Create an instance of AutoDataPrep.
>>> aprep_obj = AutoDataPrep(task_type="Classification", verbose=2)
Fit the data.
>>> aprep_obj.fit(titanic, titanic.survived)
Deploy the data to the table.
>>> aprep_obj.deploy("table_name")