---
title: bitwiseXOR
description: "Column.bitwiseXOR method in PySpark: Compute bitwise XOR of this expression with another expression."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/column/bitwiseXOR
---

# bitwiseXOR

Compute bitwise XOR of this expression with another expression.

*Changed in Databricks Runtime 13.0*: Supports Spark Connect.

## Syntax

```python
bitwiseXOR(other)
```

## Parameters

| Parameter | Type            | Description                                                     |
| --------- | --------------- | --------------------------------------------------------------- |
| `other`   | Column or value | A value or Column to calculate bitwise XOR (^) with this Column |

## Returns

Column

## Examples

```python
from pyspark.sql import Row
df = spark.createDataFrame([Row(a=170, b=75)])
df.select(df.a.bitwiseXOR(df.b)).collect()
```

```Output
# [Row((a ^ b)=225)]
```
