Nota
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba mendaftar masuk atau menukar direktori.
Capaian ke halaman ini memerlukan kebenaran. Anda boleh cuba menukar direktori.
Compute bitwise AND of this expression with another expression.
Changed in Databricks Runtime 13.0: Supports Spark Connect.
Syntax
bitwiseAND(other)
Parameters
| Parameter | Type | Description |
|---|---|---|
other |
Column or value | A value or Column to calculate bitwise AND (&) with this Column |
Returns
Column
Examples
from pyspark.sql import Row
df = spark.createDataFrame([Row(a=170, b=75)])
df.select(df.a.bitwiseAND(df.b)).collect()
# [Row((a & b)=10)]