Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Compute bitwise XOR of this expression with another expression.
Changed in Databricks Runtime 13.0: Supports Spark Connect.
Syntax
bitwiseXOR(other)
Parameters
| Parameter | Type | Description |
|---|---|---|
other |
Column or value | A value or Column to calculate bitwise XOR (^) with this Column |
Returns
Column
Examples
from pyspark.sql import Row
df = spark.createDataFrame([Row(a=170, b=75)])
df.select(df.a.bitwiseXOR(df.b)).collect()
# [Row((a ^ b)=225)]