---
title: overwrite
description: "DataFrameWriterV2.overwrite method in PySpark: Overwrites rows matching the given filter condition with the contents of the DataFrame in the output table."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/dataframewriterv2/overwrite
---

# overwrite

Overwrites rows matching the given filter condition with the contents of the `DataFrame` in the output table.

## Syntax

```
overwrite(condition)
```

## Parameters

| Parameter   | Type          | Description                                                 |
| ----------- | ------------- | ----------------------------------------------------------- |
| `condition` | Column or str | The filter condition that identifies the rows to overwrite. |

## Returns

None
