Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Interface for saving the content of the non-streaming DataFrame out into external storage.
Returns
DataFrameWriter
Examples
df = spark.createDataFrame([(2, "Alice"), (5, "Bob")], schema=["age", "name"])
type(df.write)
# <class '...readwriter.DataFrameWriter'>
Write the DataFrame as a table.
df.write.saveAsTable("tab2")