PySpark code
>>> df.write.format("parquet").save(path = "parquet_path").show()

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

teradatamlspk code to store the file in local file system
>>> df.write.format("parquet").save(path = "parquet_path").show()