DataFrameWriterV2.createOrReplace() → None[source]

Create a new table or replace an existing table with the contents of the data frame.

The output table’s schema, partition layout, properties, and other configuration will be based on the contents of the data frame and the configuration set on this writer. If the table exists, its configuration and data will be replaced.

New in version 3.1.