pyspark.sql.DataFrameWriterV2.replace

DataFrameWriterV2.replace() → None[source]

Replace an existing table with the contents of the data frame.

The existing table’s schema, partition layout, properties, and other configuration will be replaced with the contents of the data frame and the configuration set on this writer.

New in version 3.1.