Note
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Returns the bit position for the given input column.
Syntax
from pyspark.sql import functions as sf
sf.bitmap_bit_position(col)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
The input column. |
Examples
Example 1: Get bit position for a value
from pyspark.sql import functions as sf
df = spark.createDataFrame([(123,)], ['a'])
df.select('*', sf.bitmap_bit_position('a')).show()
+---+----------------------+
| a|bitmap_bit_position(a)|
+---+----------------------+
|123| 122|
+---+----------------------+