Step1: Run pyspark2teradataml with PySpark Script as Input - Step1: Run pyspark2teradataml with PySpark Script/Notebook as Input - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798

In this step, import the pyspark2teradataml utility function from teradatamlspk package, then pass the PySpark script/notebook or a directory containing PySpark scripts as input to the function.

Utility function generates the Python script/notebook with teradatamlspk syntax and an HTML report for the conversion.

How to run pyspark2teradataml

>>> from teradatamlspk import pyspark2teradataml
>>> pyspark2teradataml('/tmp/pyspark_script.py')
Python script '/tmp/pyspark_script.py' converted to '/tmp/pyspark_script_tdmlspk.py' successfully.
Script conversion report '/tmp/pyspark_script_tdmlspk.html' published successfully.