pyspark.sql.Column.bitwiseOR¶
-
Column.
bitwiseOR
(other: Union[Column, LiteralType, DecimalLiteral, DateTimeLiteral]) → Column¶ Compute bitwise OR of this expression with another expression.
Changed in version 3.4.0: Supports Spark Connect.
Examples
>>> from pyspark.sql import Row >>> df = spark.createDataFrame([Row(a=170, b=75)]) >>> df.select(df.a.bitwiseOR(df.b)).collect() [Row((a | b)=235)]