Write CSV File | teradatamlspk | pyspark2teradataml - Write CSV File - 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

When writing CSV file in teradatamlspk, the file is stored either in cloud storage or in local file system.

PySpark

df.write.csv(specified_path)

teradatamlspk

Store the file in cloud storage:

df.write.options(authorization = {"Access_ID": id, "Access_Key": key}).csv(specified_path)

Store the file in local file system:

from teradataml import fastexport
fastexport(df.toTeradataml(), export_to="csv", csv_file="Test.csv")