The first step to migrate existing PySpark workload is to convert PySpark script/notebook to teradatamlspk script/notebook.
Take the following steps to achieve this migration.
Examples can be found in the attachment list associated with this guide. In the left pane, select attachments and download examples_pyspark2teradataml_migration.zip.