pyspark.sql.Column.bitwiseXOR¶
-
Column.
bitwiseXOR
(other: Union[Column, LiteralType, DecimalLiteral, DateTimeLiteral]) → Column¶ Compute bitwise XOR of this expression with another expression.
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)]