Notiz
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Iech unzemellen oder Verzeechnesser ze änneren.
Zougrëff op dës Säit erfuerdert Autorisatioun. Dir kënnt probéieren, Verzeechnesser ze änneren.
Unsigned shift the given value numBits right.
For the corresponding Databricks SQL function, see shiftrightunsigned function.
Syntax
from pyspark.sql import functions as dbf
dbf.shiftrightunsigned(col=<col>, numBits=<numBits>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
pyspark.sql.Column or str |
input column of values to shift. |
numBits |
int |
number of bits to shift. |
Returns
pyspark.sql.Column: shifted value.
Examples
from pyspark.sql import functions as dbf
spark.range(4).select("*", dbf.shiftrightunsigned(dbf.col('id') - 2, 1)).show()