PySpark code
>>> df.write.csv(specified_path)

teradatamlspk code to store the file in cloud file system
>>> df.write.options(authorization = {"Access_ID": id, "Access_Key": key}).parquet(specified_path)

teradatamlspk code to store the file in local file system
>>> df.write.parquet(specified_path)
