Write CSV File | teradatamlspk | pyspark2teradataml - Write CSV File - Teradata Package for Python

Teradata® pyspark2teradataml User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
March 2024
Language
English (United States)
Last Update
2024-04-11
dita:mapPath
oeg1710443196055.ditamap
dita:ditavalPath
ayr1485454803741.ditaval
dita:id
oeg1710443196055
Product Category
Teradata Vantage

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")